pub struct LeaseConfig {
pub heartbeat_ttl_secs: u64,
pub idle_release_secs: u64,
}Expand description
Lease lifetime settings.
Fields§
§heartbeat_ttl_secs: u64A lease without a heartbeat for this long expires.
idle_release_secs: u64An active lease ends once no command runs under it and its holder’s session has been
idle for this long, for holders that forget release_lease; 0 turns this off.
Trait Implementations§
Source§impl Clone for LeaseConfig
impl Clone for LeaseConfig
Source§impl Debug for LeaseConfig
impl Debug for LeaseConfig
Source§impl Default for LeaseConfig
impl Default for LeaseConfig
Source§impl<'de> Deserialize<'de> for LeaseConfigwhere
LeaseConfig: Default,
impl<'de> Deserialize<'de> for LeaseConfigwhere
LeaseConfig: Default,
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
impl Eq for LeaseConfig
Source§impl PartialEq for LeaseConfig
impl PartialEq for LeaseConfig
Source§impl Serialize for LeaseConfig
impl Serialize for LeaseConfig
impl StructuralPartialEq for LeaseConfig
Auto Trait Implementations§
impl Forget for LeaseConfig
impl Freeze for LeaseConfig
impl Move for LeaseConfig
impl RefUnwindSafe for LeaseConfig
impl Send for LeaseConfig
impl Sync for LeaseConfig
impl Unpin for LeaseConfig
impl UnsafeUnpin for LeaseConfig
impl UnwindSafe for LeaseConfig
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