Enum tokio::sync::TryAcquireError [−][src]
pub enum TryAcquireError { Closed, NoPermits, }
This is supported on crate feature
sync
only.Expand description
Error returned from the Semaphore::try_acquire
function.
Variants
The semaphore has been closed and cannot issue new permits.
The semaphore has no available permits.
Trait Implementations
impl Debug for TryAcquireError
[src]
impl Debug for TryAcquireError
[src]impl Display for TryAcquireError
[src]
impl Display for TryAcquireError
[src]impl Error for TryAcquireError
[src]
impl Error for TryAcquireError
[src]fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]The lower-level source of this error, if any. Read more
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
fn description(&self) -> &str
1.0.0[src]
fn description(&self) -> &str
1.0.0[src]👎 Deprecated since 1.42.0:
use the Display impl or to_string()
impl PartialEq<TryAcquireError> for TryAcquireError
[src]
impl PartialEq<TryAcquireError> 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> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more