Enum async_weighted_semaphore::TryAcquireError [−][src]
An error returned from Semaphore::try_acquire and Semaphore::try_acquire_arc. See
Semaphore::try_acquire_arc for an example usage.
Variants
Semaphore::try_acquire failed because Semaphore::acquire would have blocked. Either
there are insufficient available permits or there is another pending call to acquire.
Semaphore::try_acquire failed because the Semaphore is poisoned.
Trait Implementations
impl Clone for TryAcquireError[src]
fn clone(&self) -> TryAcquireError[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Copy for TryAcquireError[src]
impl Debug for TryAcquireError[src]
impl Display for TryAcquireError[src]
impl Eq for TryAcquireError[src]
impl Error for TryAcquireError[src]
pub fn source(&self) -> Option<&(dyn Error + 'static)>1.30.0[src]
pub fn backtrace(&self) -> Option<&Backtrace>[src]
pub fn description(&self) -> &str1.0.0[src]
pub fn cause(&self) -> Option<&dyn Error>1.0.0[src]
impl From<PoisonError> for TryAcquireError[src]
fn from(_: PoisonError) -> Self[src]
impl Hash for TryAcquireError[src]
fn hash<__H: Hasher>(&self, state: &mut __H)[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
impl Ord for TryAcquireError[src]
fn cmp(&self, other: &TryAcquireError) -> Ordering[src]
#[must_use]pub fn max(self, other: Self) -> Self1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self1.50.0[src]
impl PartialEq<TryAcquireError> for TryAcquireError[src]
fn eq(&self, other: &TryAcquireError) -> bool[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool1.0.0[src]
impl PartialOrd<TryAcquireError> for TryAcquireError[src]
fn partial_cmp(&self, other: &TryAcquireError) -> Option<Ordering>[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool1.0.0[src]
impl StructuralEq for TryAcquireError[src]
impl StructuralPartialEq for TryAcquireError[src]
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
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T> ToString for T where
T: Display + ?Sized, [src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,