[][src]Enum async_weighted_semaphore::TryAcquireError

pub enum TryAcquireError {
    WouldBlock,
    Poisoned,
}

An error returned from Semaphore::try_acquire and Semaphore::try_acquire_arc. See Semaphore::try_acquire_arc for an example usage.

Variants

WouldBlock

Semaphore::try_acquire failed because Semaphore::acquire would have blocked. Either there are insufficient available permits or there is another pending call to acquire.

Poisoned

Semaphore::try_acquire failed because the Semaphore is poisoned.

Trait Implementations

impl Clone for TryAcquireError[src]

impl Copy for TryAcquireError[src]

impl Debug for TryAcquireError[src]

impl Display for TryAcquireError[src]

impl Eq for TryAcquireError[src]

impl Error for TryAcquireError[src]

impl From<PoisonError> for TryAcquireError[src]

impl Hash for TryAcquireError[src]

impl Ord for TryAcquireError[src]

impl PartialEq<TryAcquireError> for TryAcquireError[src]

impl PartialOrd<TryAcquireError> for TryAcquireError[src]

impl StructuralEq for TryAcquireError[src]

impl StructuralPartialEq for TryAcquireError[src]

Auto Trait Implementations

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[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.