pub struct Throughput(/* private fields */);
Expand description
Internal representation keeps a value in bits per second (bps).
Implementations§
Source§impl Throughput
impl Throughput
pub fn from_len_and_duration(len: u32, duration: Duration) -> Self
Trait Implementations§
Source§impl Clone for Throughput
impl Clone for Throughput
Source§fn clone(&self) -> Throughput
fn clone(&self) -> Throughput
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 Throughput
impl Debug for Throughput
Source§impl Display for Throughput
impl Display for Throughput
Source§impl PartialEq for Throughput
impl PartialEq for Throughput
impl Copy for Throughput
impl StructuralPartialEq for Throughput
Auto Trait Implementations§
impl Freeze for Throughput
impl RefUnwindSafe for Throughput
impl Send for Throughput
impl Sync for Throughput
impl Unpin for Throughput
impl UnwindSafe for Throughput
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