pub struct BufferStats {
pub current_memory_usage: usize,
pub peak_memory_usage: usize,
pub total_bytes_written: usize,
pub total_flushes: usize,
pub queued_buffers: usize,
pub current_buffer_size: usize,
pub is_near_capacity: bool,
}Expand description
Statistics for buffer management
Fields§
§current_memory_usage: usizeCurrent memory usage in bytes
peak_memory_usage: usizePeak memory usage reached
total_bytes_written: usizeTotal bytes written through buffers
total_flushes: usizeNumber of times buffers were flushed
queued_buffers: usizeNumber of buffers currently queued
current_buffer_size: usizeSize of the current active buffer
is_near_capacity: boolWhether we’re near memory capacity
Trait Implementations§
Source§impl Debug for BufferStats
impl Debug for BufferStats
Source§impl Default for BufferStats
impl Default for BufferStats
Source§fn default() -> BufferStats
fn default() -> BufferStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BufferStats
impl RefUnwindSafe for BufferStats
impl Send for BufferStats
impl Sync for BufferStats
impl Unpin for BufferStats
impl UnwindSafe for BufferStats
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more