pub enum Renewal {
Renewed,
Lost,
Unwritten,
}Expand description
What renewing a held lock did (Guard::renew).
Variants§
Renewed
Written anew: held for another stale_ms.
Lost
Another process holds it now (it read stale and was taken over), or it is gone.
Unwritten
Still this one’s, but not written (an I/O failure): held as before.
Trait Implementations§
impl Copy for Renewal
impl Eq for Renewal
impl StructuralPartialEq for Renewal
Auto Trait Implementations§
impl Freeze for Renewal
impl RefUnwindSafe for Renewal
impl Send for Renewal
impl Sync for Renewal
impl Unpin for Renewal
impl UnsafeUnpin for Renewal
impl UnwindSafe for Renewal
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.