pub type TryLockResult<T> = Result<T, TryLockError<T>>;Expand description
The result type returned by ThreadCheckedMutex::try_lock.
Aliased Type§
pub enum TryLockResult<T> {
Ok(T),
Err(TryLockError<T>),
}Variants§
Trait Implementations§
Source§impl<T> HandlePoisonResult for TryLockResult<T>
impl<T> HandlePoisonResult for TryLockResult<T>
Source§fn ignore_poison(self) -> Self::PoisonlessResult
fn ignore_poison(self) -> Self::PoisonlessResult
Silently converts any poison error into a successful result (see
PoisonError::into_inner), and otherwise returns the result unchanged.
Source§fn panic_if_poison(self) -> Self::PoisonlessResult
fn panic_if_poison(self) -> Self::PoisonlessResult
Source§type PoisonlessResult = Result<T, TryLockError<Infallible>>
type PoisonlessResult = Result<T, TryLockError<Infallible>>
A variation of the
Self result type which cannot possibly be a poison error.