Enum sgx_tstd::sync::TryLockError [−][src]
pub enum TryLockError<T> { Poisoned(PoisonError<T>), WouldBlock, }
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
] or the [try_read
] and [try_write
] methods on an [RwLock
].
Variants
Poisoned(PoisonError<T>)
The lock could not be acquired because another thread failed while holding the lock.
WouldBlock
The lock could not be acquired at this time because the operation would otherwise block.
Trait Implementations
impl<T> From<PoisonError<T>> for TryLockError<T>
[src]
impl<T> From<PoisonError<T>> for TryLockError<T>
fn from(err: PoisonError<T>) -> TryLockError<T>
[src]
fn from(err: PoisonError<T>) -> TryLockError<T>
Performs the conversion.
impl<T> Debug for TryLockError<T>
[src]
impl<T> Debug for TryLockError<T>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<T> Display for TryLockError<T>
[src]
impl<T> Display for TryLockError<T>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<T> Error for TryLockError<T>
[src]
impl<T> Error for TryLockError<T>
Auto Trait Implementations
impl<T> Send for TryLockError<T> where
T: Send,
impl<T> Send for TryLockError<T> where
T: Send,
impl<T> Sync for TryLockError<T> where
T: Sync,
impl<T> Sync for TryLockError<T> where
T: Sync,