pub struct LeasePolicy {
pub ttl_ms: u64,
pub heartbeat_ms: u64,
pub clock_skew_ms: u64,
}Expand description
Lease timing policy.
Fields§
§ttl_ms: u64Lease time-to-live in milliseconds.
heartbeat_ms: u64Expected heartbeat interval in milliseconds.
clock_skew_ms: u64Accepted local clock tolerance in milliseconds.
Implementations§
Source§impl LeasePolicy
impl LeasePolicy
Trait Implementations§
Source§impl Clone for LeasePolicy
impl Clone for LeasePolicy
Source§fn clone(&self) -> LeasePolicy
fn clone(&self) -> LeasePolicy
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 moreimpl Copy for LeasePolicy
Source§impl Debug for LeasePolicy
impl Debug for LeasePolicy
impl Eq for LeasePolicy
Source§impl PartialEq for LeasePolicy
impl PartialEq for LeasePolicy
impl StructuralPartialEq for LeasePolicy
Auto Trait Implementations§
impl Freeze for LeasePolicy
impl RefUnwindSafe for LeasePolicy
impl Send for LeasePolicy
impl Sync for LeasePolicy
impl Unpin for LeasePolicy
impl UnsafeUnpin for LeasePolicy
impl UnwindSafe for LeasePolicy
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