pub struct ChannelStats {
pub enqueued: u64,
pub dropped: u64,
pub drained: u64,
pub depth: usize,
pub closed: bool,
}Expand description
Snapshot stats for a channel.
use daedalus_core::channels::ChannelStats;
let stats = ChannelStats::default();
assert_eq!(stats.depth, 0);Fields§
§enqueued: u64§dropped: u64§drained: u64§depth: usize§closed: boolTrait Implementations§
Source§impl Clone for ChannelStats
impl Clone for ChannelStats
Source§fn clone(&self) -> ChannelStats
fn clone(&self) -> ChannelStats
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 ChannelStats
impl Debug for ChannelStats
Source§impl Default for ChannelStats
impl Default for ChannelStats
Source§fn default() -> ChannelStats
fn default() -> ChannelStats
Returns the “default value” for a type. Read more
Source§impl PartialEq for ChannelStats
impl PartialEq for ChannelStats
impl Eq for ChannelStats
impl StructuralPartialEq for ChannelStats
Auto Trait Implementations§
impl Freeze for ChannelStats
impl RefUnwindSafe for ChannelStats
impl Send for ChannelStats
impl Sync for ChannelStats
impl Unpin for ChannelStats
impl UnwindSafe for ChannelStats
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