Struct iroh_io::stats::SizeAndStats
source · pub struct SizeAndStats {
pub size: u64,
pub stats: Stats,
}Expand description
Statistics about a tracked operation.
Fields§
§size: u64The number of bytes read or written.
stats: StatsStatistics about the operation.
Trait Implementations§
source§impl Add for SizeAndStats
impl Add for SizeAndStats
§type Output = SizeAndStats
type Output = SizeAndStats
The resulting type after applying the
+ operator.source§impl AddAssign for SizeAndStats
impl AddAssign for SizeAndStats
source§fn add_assign(&mut self, rhs: SizeAndStats)
fn add_assign(&mut self, rhs: SizeAndStats)
Performs the
+= operation. Read moresource§impl Clone for SizeAndStats
impl Clone for SizeAndStats
source§fn clone(&self) -> SizeAndStats
fn clone(&self) -> SizeAndStats
Returns a copy 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 moresource§impl Debug for SizeAndStats
impl Debug for SizeAndStats
source§impl Default for SizeAndStats
impl Default for SizeAndStats
source§fn default() -> SizeAndStats
fn default() -> SizeAndStats
Returns the “default value” for a type. Read more
source§impl From<Stats> for SizeAndStats
impl From<Stats> for SizeAndStats
impl Copy for SizeAndStats
Auto Trait Implementations§
impl RefUnwindSafe for SizeAndStats
impl Send for SizeAndStats
impl Sync for SizeAndStats
impl Unpin for SizeAndStats
impl UnwindSafe for SizeAndStats
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