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
CapacityExceeded
The capacity of the semaphore was exceeded.
Shutdown
The semaphore has been shut down.