Struct wikimedia::util::fmt::TransferStats
source · pub struct TransferStats {
pub len: Bytes,
pub duration: Duration,
pub rate: ByteRate,
}
Fields§
§len: Bytes
Transfered file size in bytes.
duration: Duration
Duration of the file transfer.
rate: ByteRate
Transfer rate of the transfer.
Implementations§
source§impl TransferStats
impl TransferStats
pub fn new(len: Bytes, duration: StdDuration) -> TransferStats
Trait Implementations§
source§impl Clone for TransferStats
impl Clone for TransferStats
source§fn clone(&self) -> TransferStats
fn clone(&self) -> TransferStats
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 TransferStats
impl Debug for TransferStats
source§impl Structable for TransferStats
impl Structable for TransferStats
source§fn definition(&self) -> StructDef<'_>
fn definition(&self) -> StructDef<'_>
Returns the struct’s definition. Read more