pub enum LatchError {
AlreadyHeld(String),
NotHeld(String),
Timeout(String),
}Expand description
Errors that can occur during latch operations.
Variants§
AlreadyHeld(String)
The latch is already held by the current thread (reentrancy detected).
NotHeld(String)
The latch is not held by the current thread on release.
Timeout(String)
The latch acquisition timed out.
Trait Implementations§
Source§impl Debug for LatchError
impl Debug for LatchError
Source§impl Display for LatchError
impl Display for LatchError
Source§impl Error for LatchError
impl Error for LatchError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for LatchError
impl RefUnwindSafe for LatchError
impl Send for LatchError
impl Sync for LatchError
impl Unpin for LatchError
impl UnsafeUnpin for LatchError
impl UnwindSafe for LatchError
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