Struct tokio::sync::OwnedSemaphorePermit[][src]

#[must_use]pub struct OwnedSemaphorePermit { /* fields omitted */ }

An owned permit from the semaphore.

This type is created by the acquire_owned method.

Implementations

impl OwnedSemaphorePermit[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 Debug for OwnedSemaphorePermit[src]

impl Drop for OwnedSemaphorePermit[src]

Auto Trait Implementations

impl !RefUnwindSafe for OwnedSemaphorePermit

impl Send for OwnedSemaphorePermit

impl Sync for OwnedSemaphorePermit

impl Unpin for OwnedSemaphorePermit

impl !UnwindSafe for OwnedSemaphorePermit

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.