Enum tokio::sync::TryAcquireError [−][src]
pub enum TryAcquireError { Closed, NoPermits, }
This is supported on crate feature
sync
only.Expand description
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
Auto Trait Implementations
impl RefUnwindSafe for TryAcquireError
impl Send for TryAcquireError
impl Sync for TryAcquireError
impl Unpin for TryAcquireError
impl UnwindSafe for TryAcquireError