Struct RequestStats
#[repr(C)]pub struct RequestStats {
pub minimum_latency: u64,
pub maximum_latency: u64,
pub total_time_spent: u64,
pub total_calls: u64,
pub bytes_transferred: u64,
}
Expand description
Stats captured for specific block requests. Unless specified otherwise, time units are in nanoseconds and data transferred is in bytes
Fields§
§minimum_latency: u64
Minimum time taken by a request to be served.
maximum_latency: u64
Maximum time taken by a request to be served.
total_time_spent: u64
Total time spent to serve requests.
total_calls: u64
Total number of calls.
bytes_transferred: u64
bytes_transferred represents a specific quantity to the operation being measured. It has special meaning for success vs failed calls. On success: Partitally succeeded calls, bytes fetched is less than bytes requested, can be considered as successful. To keep latency and time_spent numbers accurate, on success, bytes transferred is number bytes returned to caller. It is NOT the number of bytes fetched from underlying subsystem and it is NOT number of bytes requested by the caller. On failure: On failure, bytes_transferred is the number of bytes requested by the caller.
Trait Implementations§
§impl Clone for RequestStats
impl Clone for RequestStats
§fn clone(&self) -> RequestStats
fn clone(&self) -> RequestStats
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more§impl Debug for RequestStats
impl Debug for RequestStats
§impl<D> Decode<RequestStats, D> for RequestStatswhere
D: ResourceDialect,
impl<D> Decode<RequestStats, D> for RequestStatswhere
D: ResourceDialect,
§fn new_empty() -> RequestStats
fn new_empty() -> RequestStats
Self
. The specific value does not matter,
since it will be overwritten by decode
.§impl<D> Encode<RequestStats, D> for &RequestStatswhere
D: ResourceDialect,
impl<D> Encode<RequestStats, D> for &RequestStatswhere
D: ResourceDialect,
§impl Hash for RequestStats
impl Hash for RequestStats
§impl Ord for RequestStats
impl Ord for RequestStats
§impl PartialEq for RequestStats
impl PartialEq for RequestStats
§impl PartialOrd for RequestStats
impl PartialOrd for RequestStats
§impl TypeMarker for RequestStats
impl TypeMarker for RequestStats
§type Owned = RequestStats
type Owned = RequestStats
§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
inline_align
.§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read more§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.§impl ValueTypeMarker for RequestStats
impl ValueTypeMarker for RequestStats
§type Borrowed<'a> = &'a RequestStats
type Borrowed<'a> = &'a RequestStats
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read more§fn borrow(
value: &<RequestStats as TypeMarker>::Owned,
) -> <RequestStats as ValueTypeMarker>::Borrowed<'_>
fn borrow( value: &<RequestStats as TypeMarker>::Owned, ) -> <RequestStats as ValueTypeMarker>::Borrowed<'_>
&Self::Owned
to Self::Borrowed
.