pub struct Budget(Arc<Semaphore>);Expand description
A budget limits how many messages a peer can delivery to the application.
Tuple Fields§
§0: Arc<Semaphore>Implementations§
Auto Trait Implementations§
impl Freeze for Budget
impl !RefUnwindSafe for Budget
impl Send for Budget
impl Sync for Budget
impl Unpin for Budget
impl UnsafeUnpin for Budget
impl !UnwindSafe for Budget
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