#[non_exhaustive]pub struct LeaseRenewal {
pub expires_at_ms: u64,
pub lease_epoch: u64,
}Expand description
Result of a successful renew call.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.expires_at_ms: u64New lease expiry (monotonic ms).
lease_epoch: u64Lease epoch after renewal. Monotonic non-decreasing.
Implementations§
Trait Implementations§
Source§impl Clone for LeaseRenewal
impl Clone for LeaseRenewal
Source§fn clone(&self) -> LeaseRenewal
fn clone(&self) -> LeaseRenewal
Returns a duplicate of the value. Read more
1.0.0 · 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 LeaseRenewal
impl Debug for LeaseRenewal
Source§impl Hash for LeaseRenewal
impl Hash for LeaseRenewal
Source§impl PartialEq for LeaseRenewal
impl PartialEq for LeaseRenewal
impl Copy for LeaseRenewal
impl Eq for LeaseRenewal
impl StructuralPartialEq for LeaseRenewal
Auto Trait Implementations§
impl Freeze for LeaseRenewal
impl RefUnwindSafe for LeaseRenewal
impl Send for LeaseRenewal
impl Sync for LeaseRenewal
impl Unpin for LeaseRenewal
impl UnsafeUnpin for LeaseRenewal
impl UnwindSafe for LeaseRenewal
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