pub enum MutexError {
CreationFailed,
LockFailed,
UnlockFailed,
}Expand description
The MutexError enum is a generalization when one doesn’t require the fine-grained error
handling enums. One can forward MutexError as more generic return value when a method
returns a Mutex***Error.
On a higher level it is again convertable to crate::Error.
Variants§
Trait Implementations§
Source§impl Clone for MutexError
impl Clone for MutexError
Source§fn clone(&self) -> MutexError
fn clone(&self) -> MutexError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MutexError
impl Debug for MutexError
Source§impl From<MutexCreationError> for MutexError
impl From<MutexCreationError> for MutexError
Source§fn from(_: MutexCreationError) -> MutexError
fn from(_: MutexCreationError) -> MutexError
Converts to this type from the input type.
Source§impl<'handle, T> From<MutexLockError<'handle, T>> for MutexErrorwhere
T: Debug,
impl<'handle, T> From<MutexLockError<'handle, T>> for MutexErrorwhere
T: Debug,
Source§fn from(_: MutexLockError<'handle, T>) -> MutexError
fn from(_: MutexLockError<'handle, T>) -> MutexError
Converts to this type from the input type.
Source§impl<'handle, T> From<MutexTimedLockError<'handle, T>> for MutexErrorwhere
T: Debug,
impl<'handle, T> From<MutexTimedLockError<'handle, T>> for MutexErrorwhere
T: Debug,
Source§fn from(_: MutexTimedLockError<'handle, T>) -> MutexError
fn from(_: MutexTimedLockError<'handle, T>) -> MutexError
Converts to this type from the input type.
Source§impl From<MutexUnlockError> for MutexError
impl From<MutexUnlockError> for MutexError
Source§fn from(_: MutexUnlockError) -> MutexError
fn from(_: MutexUnlockError) -> MutexError
Converts to this type from the input type.
Source§impl Hash for MutexError
impl Hash for MutexError
Source§impl PartialEq for MutexError
impl PartialEq for MutexError
impl Copy for MutexError
impl Eq for MutexError
impl StructuralPartialEq for MutexError
Auto Trait Implementations§
impl Freeze for MutexError
impl RefUnwindSafe for MutexError
impl Send for MutexError
impl Sync for MutexError
impl Unpin for MutexError
impl UnwindSafe for MutexError
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
Mutably borrows from an owned value. Read more