#[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§
Source§impl Clone for RequestStats
impl Clone for RequestStats
Source§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 moreSource§impl Debug for RequestStats
impl Debug for RequestStats
Source§impl<D: ResourceDialect> Decode<RequestStats, D> for RequestStats
impl<D: ResourceDialect> Decode<RequestStats, D> for RequestStats
Source§impl<D: ResourceDialect> Encode<RequestStats, D> for &RequestStats
impl<D: ResourceDialect> Encode<RequestStats, D> for &RequestStats
Source§impl<D: ResourceDialect, T0: Encode<u64, D>, T1: Encode<u64, D>, T2: Encode<u64, D>, T3: Encode<u64, D>, T4: Encode<u64, D>> Encode<RequestStats, D> for (T0, T1, T2, T3, T4)
impl<D: ResourceDialect, T0: Encode<u64, D>, T1: Encode<u64, D>, T2: Encode<u64, D>, T3: Encode<u64, D>, T4: Encode<u64, D>> Encode<RequestStats, D> for (T0, T1, T2, T3, T4)
Source§impl Hash for RequestStats
impl Hash for RequestStats
Source§impl Ord for RequestStats
impl Ord for RequestStats
Source§fn cmp(&self, other: &RequestStats) -> Ordering
fn cmp(&self, other: &RequestStats) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for RequestStats
impl PartialEq for RequestStats
Source§impl PartialOrd for RequestStats
impl PartialOrd for RequestStats
Source§impl TypeMarker for RequestStats
impl TypeMarker for RequestStats
Source§type Owned = RequestStats
type Owned = RequestStats
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
inline_align
.Source§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 moreSource§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.Source§impl ValueTypeMarker for RequestStats
impl ValueTypeMarker for RequestStats
Source§type Borrowed<'a> = &'a RequestStats
type Borrowed<'a> = &'a RequestStats
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read moreimpl Copy for RequestStats
impl Eq for RequestStats
impl Persistable for RequestStats
impl StructuralPartialEq for RequestStats
Auto Trait Implementations§
impl Freeze for RequestStats
impl RefUnwindSafe for RequestStats
impl Send for RequestStats
impl Sync for RequestStats
impl Unpin for RequestStats
impl UnwindSafe for RequestStats
Blanket Implementations§
§impl<T> Body for Twhere
T: Persistable,
impl<T> Body for Twhere
T: Persistable,
§type MarkerAtTopLevel = T
type MarkerAtTopLevel = T
§type MarkerInResultUnion = T
type MarkerInResultUnion = T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)