pub struct LatencyModelHandle(/* private fields */);Expand description
Shared runtime handle for a latency model.
Implementations§
Source§impl LatencyModelHandle
impl LatencyModelHandle
Sourcepub fn new<T>(model: T) -> Selfwhere
T: LatencyModel + 'static,
pub fn new<T>(model: T) -> Selfwhere
T: LatencyModel + 'static,
Creates a new LatencyModelHandle from a latency model.
Sourcepub fn from_rc(model: Rc<dyn LatencyModel>) -> Self
pub fn from_rc(model: Rc<dyn LatencyModel>) -> Self
Creates a new LatencyModelHandle from an existing reference-counted model.
Trait Implementations§
Source§impl Clone for LatencyModelHandle
impl Clone for LatencyModelHandle
Source§fn clone(&self) -> LatencyModelHandle
fn clone(&self) -> LatencyModelHandle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LatencyModelHandle
impl Debug for LatencyModelHandle
Source§impl From<LatencyModelAny> for LatencyModelHandle
impl From<LatencyModelAny> for LatencyModelHandle
Source§fn from(model: LatencyModelAny) -> Self
fn from(model: LatencyModelAny) -> Self
Converts to this type from the input type.
Source§impl LatencyModel for LatencyModelHandle
impl LatencyModel for LatencyModelHandle
Source§fn get_insert_latency(&self) -> UnixNanos
fn get_insert_latency(&self) -> UnixNanos
Returns the latency for order insertion operations.
Source§fn get_update_latency(&self) -> UnixNanos
fn get_update_latency(&self) -> UnixNanos
Returns the latency for order update/modify operations.
Source§fn get_delete_latency(&self) -> UnixNanos
fn get_delete_latency(&self) -> UnixNanos
Returns the latency for order delete/cancel operations.
Source§fn get_base_latency(&self) -> UnixNanos
fn get_base_latency(&self) -> UnixNanos
Returns the base latency component.
Auto Trait Implementations§
impl !RefUnwindSafe for LatencyModelHandle
impl !Send for LatencyModelHandle
impl !Sync for LatencyModelHandle
impl !UnwindSafe for LatencyModelHandle
impl Freeze for LatencyModelHandle
impl Unpin for LatencyModelHandle
impl UnsafeUnpin for LatencyModelHandle
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more