Struct prioritized_metered_channel::Readout
source · pub struct Readout {
pub sent: usize,
pub received: usize,
pub channel_len: usize,
pub blocked: usize,
pub tof: Vec<CoarseDuration>,
}
Expand description
A readout of sizes from the meter. Note that it is possible, due to asynchrony, for received to be slightly higher than sent.
Fields§
§sent: usize
The amount of messages sent on the channel, in aggregate.
received: usize
The amount of messages received on the channel, in aggregate.
channel_len: usize
An approximation of the queue size.
blocked: usize
How many times the caller blocked when sending messages.
tof: Vec<CoarseDuration>
Time of flight in micro seconds (us)
Trait Implementations§
source§impl PartialEq for Readout
impl PartialEq for Readout
impl StructuralPartialEq for Readout
Auto Trait Implementations§
impl Freeze for Readout
impl RefUnwindSafe for Readout
impl Send for Readout
impl Sync for Readout
impl Unpin for Readout
impl UnwindSafe for Readout
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)