Struct tokio::sync::SemaphorePermit
source · [−]pub struct SemaphorePermit<'a> { /* private fields */ }
Expand description
A permit from the semaphore.
This type is created by the acquire
method.
Implementations
sourceimpl<'a> SemaphorePermit<'a>
impl<'a> SemaphorePermit<'a>
Trait Implementations
sourceimpl<'a> Debug for SemaphorePermit<'a>
impl<'a> Debug for SemaphorePermit<'a>
Auto Trait Implementations
impl<'a> !RefUnwindSafe for SemaphorePermit<'a>
impl<'a> Send for SemaphorePermit<'a>
impl<'a> Sync for SemaphorePermit<'a>
impl<'a> Unpin for SemaphorePermit<'a>
impl<'a> !UnwindSafe for SemaphorePermit<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more