Enum TryAcquireError
pub enum TryAcquireError
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
impl Debug for TryAcquireError
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Display for TryAcquireError
fn fmt(&self, fmt: &mut Formatter<'_>) -> Result
impl Eq for TryAcquireError
impl Error for TryAcquireError
impl PartialEq for TryAcquireError
fn eq(&self, other: &TryAcquireError) -> bool
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 UnsafeUnpin for TryAcquireError
impl UnwindSafe for TryAcquireError
Blanket Implementations
impl<T> Any for TryAcquireError
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for TryAcquireError
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for TryAcquireError
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for TryAcquireError
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToString for TryAcquireError
where
T: Display + ?Sized,
fn to_string(&self) -> String
impl<T, U> Into<U> for TryAcquireError
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for TryAcquireError
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for TryAcquireError
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>