pub struct LatencyModel {
pub base_latency_nanos: UnixNanos,
pub insert_latency_nanos: UnixNanos,
pub update_latency_nanos: UnixNanos,
pub delete_latency_nanos: UnixNanos,
}
Expand description
Provides latency modeling for order processing operations.
Models the latency for different order operations including base network latency and specific operation latencies for insert, update, and delete operations.
Fields§
§base_latency_nanos: UnixNanos
§insert_latency_nanos: UnixNanos
§update_latency_nanos: UnixNanos
§delete_latency_nanos: UnixNanos
Implementations§
Source§impl LatencyModel
impl LatencyModel
Sourcepub const fn new(
base_latency_nanos: UnixNanos,
insert_latency_nanos: UnixNanos,
update_latency_nanos: UnixNanos,
delete_latency_nanos: UnixNanos,
) -> Self
pub const fn new( base_latency_nanos: UnixNanos, insert_latency_nanos: UnixNanos, update_latency_nanos: UnixNanos, delete_latency_nanos: UnixNanos, ) -> Self
Creates a new LatencyModel
instance.
Trait Implementations§
Source§impl Debug for LatencyModel
impl Debug for LatencyModel
Auto Trait Implementations§
impl Freeze for LatencyModel
impl RefUnwindSafe for LatencyModel
impl Send for LatencyModel
impl Sync for LatencyModel
impl Unpin for LatencyModel
impl UnwindSafe for LatencyModel
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Separable for Twhere
T: Display,
impl<T> Separable for Twhere
T: Display,
Source§fn separate_by_policy(&self, policy: SeparatorPolicy<'_>) -> String
fn separate_by_policy(&self, policy: SeparatorPolicy<'_>) -> String
Adds separators according to the given
SeparatorPolicy
. Read moreSource§fn separate_with_commas(&self) -> String
fn separate_with_commas(&self) -> String
Inserts a comma every three digits from the right. Read more
Source§fn separate_with_spaces(&self) -> String
fn separate_with_spaces(&self) -> String
Inserts a space every three digits from the right. Read more
Source§fn separate_with_dots(&self) -> String
fn separate_with_dots(&self) -> String
Inserts a period every three digits from the right. Read more
Source§fn separate_with_underscores(&self) -> String
fn separate_with_underscores(&self) -> String
Inserts an underscore every three digits from the right. Read more