pub struct NotHeld;Expand description
The error a memory backend returns when a retainer is not the current holder, or when a heartbeat arrives after its lease has already lapsed.
Trait Implementations§
impl Copy for NotHeld
impl Eq for NotHeld
Source§impl Error for NotHeld
impl Error for NotHeld
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()
Source§impl From<NotCurrentHolder> for NotHeld
impl From<NotCurrentHolder> for NotHeld
Source§fn from(_: NotCurrentHolder) -> Self
fn from(_: NotCurrentHolder) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for NotHeld
Auto Trait Implementations§
impl Freeze for NotHeld
impl RefUnwindSafe for NotHeld
impl Send for NotHeld
impl Sync for NotHeld
impl Unpin for NotHeld
impl UnsafeUnpin for NotHeld
impl UnwindSafe for NotHeld
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