pub(crate) struct SweepClock {
pub(crate) first_seen: SystemTime,
pub(crate) last_delivered: Option<SystemTime>,
pub(crate) failing: bool,
}Expand description
One lead’s injected-sweep clock, held in memory so a restart re-arms every lead.
Fields§
§first_seen: SystemTimeWhen this workspace first saw the lead live, re-seeded on every tick that finds the seat asleep. The fallback measures from here only until a sweep has landed this process.
last_delivered: Option<SystemTime>When the last injected sweep was delivered. Kept across a session restart: the two-hour gap belongs to the lead, and only a process restart re-arms it.
failing: boolWhether the last delivery attempt failed, so a failure episode is logged once rather than on every retry tick.
Trait Implementations§
Source§impl Clone for SweepClock
impl Clone for SweepClock
impl Copy for SweepClock
Auto Trait Implementations§
impl Freeze for SweepClock
impl RefUnwindSafe for SweepClock
impl Send for SweepClock
impl Sync for SweepClock
impl Unpin for SweepClock
impl UnsafeUnpin for SweepClock
impl UnwindSafe for SweepClock
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
§impl<T> ResetDiscriminant<T> for Twhere
T: Copy,
impl<T> ResetDiscriminant<T> for Twhere
T: Copy,
§fn discriminant(&self) -> T
fn discriminant(&self) -> T
Value based on which equality for the reset will be determined.