pub enum TryDualLockError {
LeftWouldBlock,
RightWouldBlock,
LeftPoisoned,
RightPoisoned,
}Expand description
This error type is returned when on on_dual_definition fails,
indicating that a proper lock could not be established on both components.
Variants§
LeftWouldBlock
Indicates that the first component would block while waiting to be locked.
RightWouldBlock
Indicates that the second component would block while waiting to be locked.
LeftPoisoned
Indicates that the first component has had its mutex poisoned.
RightPoisoned
Indicates that the second component has had its mutex poisoned.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TryDualLockError
impl RefUnwindSafe for TryDualLockError
impl Send for TryDualLockError
impl Sync for TryDualLockError
impl Unpin for TryDualLockError
impl UnsafeUnpin for TryDualLockError
impl UnwindSafe for TryDualLockError
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