pub enum LeaseReply {
Granted {
id: u64,
},
Busy {
holder: String,
expires_in_s: u32,
},
Ok,
Gone,
}Variants§
Granted
Busy
Someone else holds the lease; retry after backoff.
Ok
Renew/Release acknowledged.
Gone
The lease id is not current (expired and possibly re-granted).
Trait Implementations§
Source§impl Clone for LeaseReply
impl Clone for LeaseReply
Source§fn clone(&self) -> LeaseReply
fn clone(&self) -> LeaseReply
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 LeaseReply
impl Debug for LeaseReply
Source§impl<'de> Deserialize<'de> for LeaseReply
impl<'de> Deserialize<'de> for LeaseReply
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for LeaseReply
impl RefUnwindSafe for LeaseReply
impl Send for LeaseReply
impl Sync for LeaseReply
impl Unpin for LeaseReply
impl UnsafeUnpin for LeaseReply
impl UnwindSafe for LeaseReply
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