pub struct BytesCount { /* private fields */ }Expand description
Atomic counter that is safe to be shared between threads, as it uses atomic add and load operations.
Implementations§
Trait Implementations§
Source§impl Clone for BytesCount
impl Clone for BytesCount
Source§fn clone(&self) -> BytesCount
fn clone(&self) -> BytesCount
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 BytesCount
impl RefUnwindSafe for BytesCount
impl Send for BytesCount
impl Sync for BytesCount
impl Unpin for BytesCount
impl UnwindSafe for BytesCount
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