pub enum TryAcquireError<P, C: IsCloseable> {
NoPermits(P),
Closed(C::AcquireError<P>),
}Expand description
The error returned by SemaphoreQueue::try_acquire.
Variants§
NoPermits(P)
The semaphore had no permits to give out right now.
Closed(C::AcquireError<P>)
The semaphore is closed.
Trait Implementations§
Source§impl<P: Debug, C: Debug + IsCloseable> Debug for TryAcquireError<P, C>where
C::AcquireError<P>: Debug,
impl<P: Debug, C: Debug + IsCloseable> Debug for TryAcquireError<P, C>where
C::AcquireError<P>: Debug,
Source§impl<P, C: IsCloseable> Display for TryAcquireError<P, C>
impl<P, C: IsCloseable> Display for TryAcquireError<P, C>
Source§impl<P: PartialEq, C: PartialEq + IsCloseable> PartialEq for TryAcquireError<P, C>where
C::AcquireError<P>: PartialEq,
impl<P: PartialEq, C: PartialEq + IsCloseable> PartialEq for TryAcquireError<P, C>where
C::AcquireError<P>: PartialEq,
impl<P: Eq, C: Eq + IsCloseable> Eq for TryAcquireError<P, C>where
C::AcquireError<P>: Eq,
impl<P, C: IsCloseable> StructuralPartialEq for TryAcquireError<P, C>
Auto Trait Implementations§
impl<P, C> Freeze for TryAcquireError<P, C>
impl<P, C> RefUnwindSafe for TryAcquireError<P, C>
impl<P, C> Send for TryAcquireError<P, C>
impl<P, C> Sync for TryAcquireError<P, C>
impl<P, C> Unpin for TryAcquireError<P, C>
impl<P, C> UnwindSafe for TryAcquireError<P, C>
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