Struct TryLockError
pub struct TryLockError(/* private field */);
Error returned from the Mutex::try_lock, RwLock::try_read and
RwLock::try_write functions.
Mutex::try_lock operation will only fail if the mutex is already locked.
RwLock::try_read operation will only fail if the lock is currently held
by an exclusive writer.
RwLock::try_write operation will only fail if the lock is currently held
by any reader or by an exclusive writer.
Trait Implementations
impl Debug for TryLockError
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Display for TryLockError
fn fmt(&self, fmt: &mut Formatter<'_>) -> Result
impl Error for TryLockError
Auto Trait Implementations
impl Freeze for TryLockError
impl RefUnwindSafe for TryLockError
impl Send for TryLockError
impl Sync for TryLockError
impl Unpin for TryLockError
impl UnsafeUnpin for TryLockError
impl UnwindSafe for TryLockError
Blanket Implementations
impl<T> Any for TryLockError
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for TryLockError
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for TryLockError
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for TryLockError
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToString for TryLockError
where
T: Display + ?Sized,
fn to_string(&self) -> String
impl<T, U> Into<U> for TryLockError
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for TryLockError
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for TryLockError
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>