pub struct LockConfig {
pub cluster_seed: Vec<SocketAddr>,
pub default_ttl: Duration,
pub watchdog_interval: Duration,
}Expand description
Configuration for connecting a LockClient to a lock cluster.
Fields§
§cluster_seed: Vec<SocketAddr>Seed addresses of the lock cluster.
MOCK: the spec resolves these through ash-discovery via ash-rpc.
That crate does not exist yet, so the seeds are recorded but otherwise
unused (the default backend runs in-process; an empty list is fine).
Kept so the real transport can be dropped in unchanged.
default_ttl: DurationDefault lease TTL for locks that do not override it.
watchdog_interval: DurationHow often the watchdog renews a lease. Conventionally ~½ the TTL.
Trait Implementations§
Source§impl Clone for LockConfig
impl Clone for LockConfig
Source§impl Debug for LockConfig
impl Debug for LockConfig
Auto Trait Implementations§
impl Freeze for LockConfig
impl RefUnwindSafe for LockConfig
impl Send for LockConfig
impl Sync for LockConfig
impl Unpin for LockConfig
impl UnsafeUnpin for LockConfig
impl UnwindSafe for LockConfig
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