pub enum AsyncSemaphoreError {
RequestExceedsSemaphoreCapacity,
StaleSemaphore,
MemoryAllocationFailure,
Internal,
}Expand description
Error information returned by the AsyncSemaphore API.
Variants§
RequestExceedsSemaphoreCapacity
The requested number of leases exceeds the inquired
AsyncSemaphore’s total capacity.
StaleSemaphore
A pending operation’s associated AsyncSemaphore has been
dropped.
MemoryAllocationFailure
Memory allocation failure.
Internal
Internal error.
Trait Implementations§
Source§impl Clone for AsyncSemaphoreError
impl Clone for AsyncSemaphoreError
impl Copy for AsyncSemaphoreError
Source§impl Debug for AsyncSemaphoreError
impl Debug for AsyncSemaphoreError
Source§impl From<AsyncSemaphoreError> for AsyncRwLockError
impl From<AsyncSemaphoreError> for AsyncRwLockError
Source§fn from(value: AsyncSemaphoreError) -> Self
fn from(value: AsyncSemaphoreError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AsyncSemaphoreError
impl RefUnwindSafe for AsyncSemaphoreError
impl Send for AsyncSemaphoreError
impl Sync for AsyncSemaphoreError
impl Unpin for AsyncSemaphoreError
impl UnsafeUnpin for AsyncSemaphoreError
impl UnwindSafe for AsyncSemaphoreError
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