pub struct ByteBudget(/* private fields */);Expand description
Shared byte budget for one WebRTC answerer session.
Implementations§
Source§impl ByteBudget
impl ByteBudget
Sourcepub fn reserve(&self, bytes: usize) -> Option<OwnedSemaphorePermit>
pub fn reserve(&self, bytes: usize) -> Option<OwnedSemaphorePermit>
Reserve bytes from the session budget, or None when exhausted.
Trait Implementations§
Source§impl Clone for ByteBudget
impl Clone for ByteBudget
Auto Trait Implementations§
impl Forget for ByteBudget
impl Freeze for ByteBudget
impl Move for ByteBudget
impl RefUnwindSafe for ByteBudget
impl Send for ByteBudget
impl Sync for ByteBudget
impl Unpin for ByteBudget
impl UnsafeUnpin for ByteBudget
impl UnwindSafe for ByteBudget
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