pub struct BufferStats {
pub chunks_buffered: usize,
pub bytes_buffered: usize,
pub max_bytes: usize,
pub utilization: f64,
pub chunks_read: usize,
pub chunks_written: usize,
pub total_chunks: Option<usize>,
pub complete: bool,
}Expand description
Buffer statistics.
Fields§
§chunks_buffered: usizeNumber of chunks currently buffered
bytes_buffered: usizeNumber of bytes currently buffered
max_bytes: usizeMaximum buffer size in bytes
utilization: f64Buffer utilization (0.0 to 1.0)
chunks_read: usizeNumber of chunks read
chunks_written: usizeNumber of chunks written
total_chunks: Option<usize>Total number of chunks (if known)
complete: boolWhether writing is complete
Implementations§
Trait Implementations§
Source§impl Clone for BufferStats
impl Clone for BufferStats
Source§fn clone(&self) -> BufferStats
fn clone(&self) -> BufferStats
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 moreAuto Trait Implementations§
impl Freeze for BufferStats
impl RefUnwindSafe for BufferStats
impl Send for BufferStats
impl Sync for BufferStats
impl Unpin for BufferStats
impl UnsafeUnpin for BufferStats
impl UnwindSafe for BufferStats
Blanket Implementations§
impl<T> Allocation for 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
Mutably borrows from an owned value. Read more