pub enum TryAcquireError {
Closed,
NoPermits,
}
Expand description
Error returned from the Semaphore::try_acquire
function.
Variants§
Closed
The semaphore has been closed and cannot issue new permits.
NoPermits
The semaphore has no available permits.
Trait Implementations§
Source§impl Debug for TryAcquireError
impl Debug for TryAcquireError
Source§impl Display for TryAcquireError
impl Display for TryAcquireError
Source§impl Error for TryAcquireError
impl Error for TryAcquireError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl PartialEq for TryAcquireError
impl PartialEq for TryAcquireError
impl Eq for TryAcquireError
impl StructuralPartialEq for TryAcquireError
Auto Trait Implementations§
impl Freeze for TryAcquireError
impl RefUnwindSafe for TryAcquireError
impl Send for TryAcquireError
impl Sync for TryAcquireError
impl Unpin for TryAcquireError
impl UnwindSafe for TryAcquireError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more