Enum tokio::sync::TryAcquireError [−][src]
pub enum TryAcquireError { Closed, NoPermits, }
Error returned from the Semaphore::try_acquire
function.
Variants
The semaphore has been closed and cannot issue new permits.
The semaphore has no available permits.
Trait Implementations
impl Error for TryAcquireError
[src]
impl Error for TryAcquireError
[src]impl PartialEq<TryAcquireError> for TryAcquireError
[src]
impl PartialEq<TryAcquireError> for TryAcquireError
[src]