pub struct PulseRecord {
pub attempted_at: DateTime<Utc>,
pub next_at: DateTime<Utc>,
pub sent_at: Option<DateTime<Utc>>,
pub state: Option<AgentState>,
pub stale_after_seconds: Option<i64>,
pub clock_skew_seconds: Option<i64>,
pub error: Option<String>,
}Expand description
The latest attempt, as the watcher recorded it.
Fields§
§attempted_at: DateTime<Utc>When the watcher last tried, whatever came of it.
next_at: DateTime<Utc>When it means to try next. A watcher that is gone stops moving this, which is how a reader tells “quiet because nothing changed” from “quiet because nobody is sending”.
sent_at: Option<DateTime<Utc>>When a pulse last arrived; None until one has.
state: Option<AgentState>The state that pulse claimed.
stale_after_seconds: Option<i64>How long the server believes a pulse, from its last answer.
clock_skew_seconds: Option<i64>This machine’s clock against the server’s, from its last answer.
error: Option<String>Why the last attempt did not arrive; None when it did.
Trait Implementations§
Source§impl Clone for PulseRecord
impl Clone for PulseRecord
Source§impl Debug for PulseRecord
impl Debug for PulseRecord
Source§impl PartialEq for PulseRecord
impl PartialEq for PulseRecord
impl StructuralPartialEq for PulseRecord
Auto Trait Implementations§
impl Freeze for PulseRecord
impl RefUnwindSafe for PulseRecord
impl Send for PulseRecord
impl Sync for PulseRecord
impl Unpin for PulseRecord
impl UnsafeUnpin for PulseRecord
impl UnwindSafe for PulseRecord
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