Enum semaphore::TryAccessError [] [src]

pub enum TryAccessError {
    CapacityExceeded,
    Shutdown,
}

An error indicating a failure to acquire access to the resource behind the semaphore.

Returned from Semaphore::try_access.

Variants

The capacity of the semaphore was exceeded.

The semaphore has been shut down.

Trait Implementations

impl Debug for TryAccessError
[src]

[src]

Formats the value using the given formatter.