pub struct TransferRate(/* private fields */);
Expand description
Rate at which bytes can be sent/received
Implementations§
Source§impl TransferRate
impl TransferRate
Sourcepub fn bytes_per_sec(self) -> u64
pub fn bytes_per_sec(self) -> u64
Get the transfer rate in bytes per second
Trait Implementations§
Source§impl Clone for TransferRate
impl Clone for TransferRate
Source§fn clone(&self) -> TransferRate
fn clone(&self) -> TransferRate
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 TransferRate
impl Debug for TransferRate
Source§impl<'de> Deserialize<'de> for TransferRate
impl<'de> Deserialize<'de> for TransferRate
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for TransferRate
impl PartialEq for TransferRate
Source§impl Serialize for TransferRate
impl Serialize for TransferRate
impl Copy for TransferRate
impl Eq for TransferRate
impl StructuralPartialEq for TransferRate
Auto Trait Implementations§
impl Freeze for TransferRate
impl RefUnwindSafe for TransferRate
impl Send for TransferRate
impl Sync for TransferRate
impl Unpin for TransferRate
impl UnwindSafe for TransferRate
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