pub struct Liveness {
pub check_interval: Duration,
pub stall_bound: Duration,
}Expand description
The timing of wait_until_dead_with. Only Liveness::PRODUCTION is
meant for shipped code; other values exist so tests can shorten the
bounds, and a stall_bound at or below the ping interval would judge a
healthy idle connection stalled.
Fields§
§check_interval: DurationHow often the local check runs.
stall_bound: DurationHow long without received bytes before a credential witness is tried.
Implementations§
Source§impl Liveness
impl Liveness
pub const PRODUCTION: Liveness
Sourcepub const fn exit_bound(&self) -> Duration
pub const fn exit_bound(&self) -> Duration
The longest a stalled client stays alive after the broker answers.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Liveness
impl RefUnwindSafe for Liveness
impl Send for Liveness
impl Sync for Liveness
impl Unpin for Liveness
impl UnsafeUnpin for Liveness
impl UnwindSafe for Liveness
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