pub struct BandwidthPermit { /* private fields */ }Expand description
RAII permit for bandwidth consumption
Automatically tracks bandwidth usage while held and releases when dropped.
Implementations§
Trait Implementations§
Source§impl Debug for BandwidthPermit
impl Debug for BandwidthPermit
Auto Trait Implementations§
impl Freeze for BandwidthPermit
impl !RefUnwindSafe for BandwidthPermit
impl Send for BandwidthPermit
impl Sync for BandwidthPermit
impl Unpin for BandwidthPermit
impl UnsafeUnpin for BandwidthPermit
impl !UnwindSafe for BandwidthPermit
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