Enum std::sync::TryLockError
1.0.0 · source · pub enum TryLockError<T> {
Poisoned(PoisonError<T>),
WouldBlock,
}
Expand description
Variants§
Trait Implementations§
source§impl<T> Debug for TryLockError<T>
impl<T> Debug for TryLockError<T>
source§impl<T> Display for TryLockError<T>
impl<T> Display for TryLockError<T>
source§impl<T> Error for TryLockError<T>
impl<T> Error for TryLockError<T>
source§impl<T> From<PoisonError<T>> for TryLockError<T>
impl<T> From<PoisonError<T>> for TryLockError<T>
source§fn from(err: PoisonError<T>) -> TryLockError<T>
fn from(err: PoisonError<T>) -> TryLockError<T>
从输入类型转换为此类型。
Auto Trait Implementations§
impl<T> RefUnwindSafe for TryLockError<T>where T: RefUnwindSafe,
impl<T> Send for TryLockError<T>where T: Send,
impl<T> Sync for TryLockError<T>where T: Sync,
impl<T> Unpin for TryLockError<T>where T: Unpin,
impl<T> UnwindSafe for TryLockError<T>where T: UnwindSafe,
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
从拥有的值中借用。 Read more