[−][src]Struct tokio::sync::SemaphorePermit
A permit from the semaphore.
This type is created by the acquire
method.
Implementations
impl<'a> SemaphorePermit<'a>
[src]
pub fn forget(self)
[src]
Forgets the permit without releasing it back to the semaphore. This can be used to reduce the amount of permits available from a semaphore.
Trait Implementations
impl<'a> Debug for SemaphorePermit<'a>
[src]
impl<'a, '_> Drop for SemaphorePermit<'_>
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut Tⓘ
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,