pub struct PulseAccepted {
pub interval_seconds: i64,
pub stale_after_seconds: i64,
pub state: AgentState,
pub clock_skew_seconds: i64,
}Expand description
What the server answers to a pulse.
The cadence comes from here rather than from configuration: the interval and the point at which the server stops believing a pulse have to agree, and only the server can own that.
Fields§
§interval_seconds: i64Seconds until the next pulse is wanted.
stale_after_seconds: i64After how many seconds of silence the server shows this person as offline.
state: AgentStateThe state as recorded, echoed back.
clock_skew_seconds: i64How far this machine’s clock is from the server’s, in seconds, positive when this machine is ahead.
Trait Implementations§
Source§impl Clone for PulseAccepted
impl Clone for PulseAccepted
Source§impl Debug for PulseAccepted
impl Debug for PulseAccepted
Source§impl<'de> Deserialize<'de> for PulseAccepted
impl<'de> Deserialize<'de> for PulseAccepted
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
Auto Trait Implementations§
impl Freeze for PulseAccepted
impl RefUnwindSafe for PulseAccepted
impl Send for PulseAccepted
impl Sync for PulseAccepted
impl Unpin for PulseAccepted
impl UnsafeUnpin for PulseAccepted
impl UnwindSafe for PulseAccepted
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