pub struct OutputSlotByteStats {
pub incoming_bytes: usize,
pub copied_bytes: usize,
pub moved_bytes: usize,
pub appended_bytes: usize,
pub retained_capacity_bytes: usize,
}Expand description
Byte-pressure accounting from output-buffer replacement.
Fields§
§incoming_bytes: usizeBytes presented by incoming output buffers before replacement.
copied_bytes: usizeBytes copied into retained caller-owned slots.
moved_bytes: usizeBytes moved into place by swapping oversized incoming allocations.
appended_bytes: usizeBytes appended beyond the previous output vector length.
retained_capacity_bytes: usizeTotal retained capacity of output slots after replacement.
Trait Implementations§
Source§impl Clone for OutputSlotByteStats
impl Clone for OutputSlotByteStats
Source§fn clone(&self) -> OutputSlotByteStats
fn clone(&self) -> OutputSlotByteStats
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 OutputSlotByteStats
Source§impl Debug for OutputSlotByteStats
impl Debug for OutputSlotByteStats
Source§impl Default for OutputSlotByteStats
impl Default for OutputSlotByteStats
Source§fn default() -> OutputSlotByteStats
fn default() -> OutputSlotByteStats
Returns the “default value” for a type. Read more
impl Eq for OutputSlotByteStats
Source§impl PartialEq for OutputSlotByteStats
impl PartialEq for OutputSlotByteStats
Source§fn eq(&self, other: &OutputSlotByteStats) -> bool
fn eq(&self, other: &OutputSlotByteStats) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for OutputSlotByteStats
Auto Trait Implementations§
impl Freeze for OutputSlotByteStats
impl RefUnwindSafe for OutputSlotByteStats
impl Send for OutputSlotByteStats
impl Sync for OutputSlotByteStats
impl Unpin for OutputSlotByteStats
impl UnsafeUnpin for OutputSlotByteStats
impl UnwindSafe for OutputSlotByteStats
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.