pub struct RateControl { /* private fields */ }Implementations§
Source§impl RateControl
impl RateControl
pub fn new() -> Self
Sourcepub fn prime(&mut self, sent_packets: u64, lost_packets: u64)
pub fn prime(&mut self, sent_packets: u64, lost_packets: u64)
Sets the baseline so the first observation covers only the next second.
pub fn kbps(&self) -> u32
Auto Trait Implementations§
impl Forget for RateControl
impl Freeze for RateControl
impl Move for RateControl
impl RefUnwindSafe for RateControl
impl Send for RateControl
impl Sync for RateControl
impl Unpin for RateControl
impl UnsafeUnpin for RateControl
impl UnwindSafe for RateControl
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