pub struct LatencyMetrics {
pub last_us: Option<i64>,
pub max_us: Option<i64>,
pub min_us: Option<i64>,
pub sum_us: Option<i64>,
pub avg_us: Option<f64>,
pub std_deviation_us: Option<i64>,
}
Expand description
Latency numbers in microseconds, based on all EvaluationStage::Run() calls so far.
Next ID: 7
Fields§
§last_us: Option<i64>
Latency for the last Run.
max_us: Option<i64>
Maximum latency observed for any Run.
min_us: Option<i64>
Minimum latency observed for any Run.
sum_us: Option<i64>
Sum of all Run latencies.
avg_us: Option<f64>
Average latency across all Runs.
std_deviation_us: Option<i64>
Standard deviation for latency across all Runs.
Implementations§
Source§impl LatencyMetrics
impl LatencyMetrics
Sourcepub fn last_us(&self) -> i64
pub fn last_us(&self) -> i64
Returns the value of last_us
, or the default value if last_us
is unset.
Sourcepub fn max_us(&self) -> i64
pub fn max_us(&self) -> i64
Returns the value of max_us
, or the default value if max_us
is unset.
Sourcepub fn min_us(&self) -> i64
pub fn min_us(&self) -> i64
Returns the value of min_us
, or the default value if min_us
is unset.
Sourcepub fn sum_us(&self) -> i64
pub fn sum_us(&self) -> i64
Returns the value of sum_us
, or the default value if sum_us
is unset.
Sourcepub fn avg_us(&self) -> f64
pub fn avg_us(&self) -> f64
Returns the value of avg_us
, or the default value if avg_us
is unset.
Sourcepub fn std_deviation_us(&self) -> i64
pub fn std_deviation_us(&self) -> i64
Returns the value of std_deviation_us
, or the default value if std_deviation_us
is unset.
Trait Implementations§
Source§impl Clone for LatencyMetrics
impl Clone for LatencyMetrics
Source§fn clone(&self) -> LatencyMetrics
fn clone(&self) -> LatencyMetrics
Returns a duplicate of the value. Read more
1.0.0 · 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 LatencyMetrics
impl Debug for LatencyMetrics
Source§impl Default for LatencyMetrics
impl Default for LatencyMetrics
Source§impl Message for LatencyMetrics
impl Message for LatencyMetrics
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message to a buffer. Read more
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into
self
. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes a length-delimited instance of the message from buffer, and
merges it into
self
.Source§impl PartialEq for LatencyMetrics
impl PartialEq for LatencyMetrics
impl StructuralPartialEq for LatencyMetrics
Auto Trait Implementations§
impl Freeze for LatencyMetrics
impl RefUnwindSafe for LatencyMetrics
impl Send for LatencyMetrics
impl Sync for LatencyMetrics
impl Unpin for LatencyMetrics
impl UnwindSafe for LatencyMetrics
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