pub struct NetworkStats {
pub sent: u64,
pub delivered: u64,
pub dropped: u64,
pub duplicated: u64,
pub reordered: u64,
}Expand description
Cumulative delivery counters for test assertions.
Fields§
§sent: u64Messages passed to Network::send.
delivered: u64Messages moved into a destination inbox.
dropped: u64Messages dropped (partition, link fault, or crashed receiver).
duplicated: u64Extra copies scheduled by duplication.
reordered: u64Sends whose delivery time undercut an earlier send on the link.
Trait Implementations§
Source§impl Clone for NetworkStats
impl Clone for NetworkStats
Source§fn clone(&self) -> NetworkStats
fn clone(&self) -> NetworkStats
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for NetworkStats
Source§impl Debug for NetworkStats
impl Debug for NetworkStats
Source§impl Default for NetworkStats
impl Default for NetworkStats
Source§fn default() -> NetworkStats
fn default() -> NetworkStats
Returns the “default value” for a type. Read more
impl Eq for NetworkStats
Source§impl PartialEq for NetworkStats
impl PartialEq for NetworkStats
impl StructuralPartialEq for NetworkStats
Auto Trait Implementations§
impl Freeze for NetworkStats
impl RefUnwindSafe for NetworkStats
impl Send for NetworkStats
impl Sync for NetworkStats
impl Unpin for NetworkStats
impl UnsafeUnpin for NetworkStats
impl UnwindSafe for NetworkStats
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