pub enum TryAcquireError {
Closed,
NoPermits,
}
Expand description
An error which can occur when a Semaphore
has been closed or has no
available permits.
Variants§
Closed
The semaphore has been closed and can not issue new permits.
NoPermits
The semaphore has no available permits.
Trait Implementations§
Source§impl Clone for TryAcquireError
impl Clone for TryAcquireError
Source§fn clone(&self) -> TryAcquireError
fn clone(&self) -> TryAcquireError
Returns a copy of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TryAcquireError
impl Debug for TryAcquireError
Source§impl Display for TryAcquireError
impl Display for TryAcquireError
Source§impl PartialEq for TryAcquireError
impl PartialEq for TryAcquireError
Source§impl PartialOrd for TryAcquireError
impl PartialOrd for TryAcquireError
Source§fn partial_cmp(&self, other: &TryAcquireError) -> Option<Ordering>
fn partial_cmp(&self, other: &TryAcquireError) -> Option<Ordering>
impl Copy 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§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)