pub struct Permit { /* private fields */ }
Expand description
A permit that holds the Semaphore, so that drop(permit)
can be called.
Trait Implementationsยง
Auto Trait Implementationsยง
impl Freeze for Permit
impl RefUnwindSafe for Permit
impl Send for Permit
impl Sync for Permit
impl Unpin for Permit
impl UnwindSafe for Permit
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