pub struct StreamStats {
pub current_size: usize,
pub max_size: usize,
pub total_written: u64,
pub bytes_evicted: u64,
pub closed: bool,
}Expand description
Statistics about a bounded stream.
Fields§
§current_size: usizeCurrent bytes in buffer.
max_size: usizeMaximum buffer size.
total_written: u64Total bytes written (lifetime).
bytes_evicted: u64Bytes evicted due to overflow.
closed: boolWhether the stream is closed.
Trait Implementations§
Source§impl Clone for StreamStats
impl Clone for StreamStats
Source§fn clone(&self) -> StreamStats
fn clone(&self) -> StreamStats
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 moreAuto Trait Implementations§
impl Freeze for StreamStats
impl RefUnwindSafe for StreamStats
impl Send for StreamStats
impl Sync for StreamStats
impl Unpin for StreamStats
impl UnsafeUnpin for StreamStats
impl UnwindSafe for StreamStats
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