pub struct LeaseResp {
pub key: [u8; 16],
pub state: u32,
pub flags: u32,
pub epoch: u16,
pub v2: bool,
}Expand description
Granted lease returned in a CREATE response RqLs context.
Fields§
§key: [u8; 16]Lease key echoed back to the client.
state: u32Granted lease state (lease bits).
flags: u32Lease flags.
epoch: u16Lease epoch (v2 only).
v2: boolEmit the v2 (52-byte) form.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LeaseResp
impl RefUnwindSafe for LeaseResp
impl Send for LeaseResp
impl Sync for LeaseResp
impl Unpin for LeaseResp
impl UnsafeUnpin for LeaseResp
impl UnwindSafe for LeaseResp
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