pub enum TryLockError {
Interrupt(InterruptError),
LockMem(LockMemError),
WouldBlock(WouldBlockError),
}
Available on
Linux
only.Variants§
Trait Implementations§
Source§impl Clone for TryLockError
impl Clone for TryLockError
Source§fn clone(&self) -> TryLockError
fn clone(&self) -> TryLockError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§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 source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<InterruptError> for TryLockError
impl From<InterruptError> for TryLockError
Source§fn from(value: InterruptError) -> Self
fn from(value: InterruptError) -> Self
Converts to this type from the input type.
Source§impl From<LockMemError> for TryLockError
impl From<LockMemError> for TryLockError
Source§fn from(value: LockMemError) -> Self
fn from(value: LockMemError) -> Self
Converts to this type from the input type.
Source§impl From<WouldBlockError> for TryLockError
impl From<WouldBlockError> for TryLockError
Source§fn from(value: WouldBlockError) -> Self
fn from(value: WouldBlockError) -> Self
Converts to this type from the input type.
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