Enum maitake_sync::semaphore::TryAcquireError
source · pub enum TryAcquireError {
Closed,
InsufficientPermits,
}
Expand description
Errors returned by Semaphore::try_acquire
.
Variants§
Closed
The semaphore has been closed, so additional permits cannot be acquired.
InsufficientPermits
The semaphore does not currently have enough permits to satisfy the request.
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
Available on crate feature core-error
only.
impl Error for TryAcquireError
Available on crate feature
core-error
only.1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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
source§fn eq(&self, other: &TryAcquireError) -> bool
fn eq(&self, other: &TryAcquireError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for TryAcquireError
impl StructuralEq for TryAcquireError
impl StructuralPartialEq for TryAcquireError
Auto Trait Implementations§
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