pub enum TryLockError {
WouldBlock,
}
Expand description
An enumeration of possible errors associated with a TryLockResult
which
can occur while trying to acquire a lock, from the try_lock
method on a
Mutex
.
Variants§
WouldBlock
The lock could not be acquired at this time because the operation would otherwise block.
Trait Implementations§
Source§impl Debug for TryLockError
impl Debug for TryLockError
Source§impl Display for TryLockError
impl Display for TryLockError
Source§impl Error for TryLockError
impl Error for TryLockError
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Auto Trait Implementations§
impl Freeze for TryLockError
impl RefUnwindSafe for TryLockError
impl Send for TryLockError
impl Sync for TryLockError
impl Unpin for TryLockError
impl UnwindSafe for TryLockError
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