pub type LockResult<T> = Result<T, LockError<T>>;Expand description
The result type returned by ThreadCheckedMutex::lock.
Aliased Type§
pub enum LockResult<T> {
Ok(T),
Err(LockError<T>),
}Variants§
Trait Implementations§
Source§impl<T> HandlePoisonResult for LockResult<T>
impl<T> HandlePoisonResult for LockResult<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, LockError<Infallible>>
type PoisonlessResult = Result<T, LockError<Infallible>>
A variation of the
Self result type which cannot possibly be a poison error.