pub struct Pulse {
pub state: AgentState,
pub at: DateTime<FixedOffset>,
}Expand description
One pulse, as POST /api/v1/agent/heartbeat takes it.
The state and the moment, and nothing else: not the task, not the reason for a break. Those belong to the day, under the privacy level that governs it, and a pulse that carried them would be a live feed of what someone is doing this minute (ADR 0014 in kasl-server).
Fields§
§state: AgentState§at: DateTime<FixedOffset>When the state was observed, with this machine’s UTC offset like every instant in this API. The server ages a pulse by its own clock, so this is what it measures the skew against, not what it trusts.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Pulse
impl RefUnwindSafe for Pulse
impl Send for Pulse
impl Sync for Pulse
impl Unpin for Pulse
impl UnsafeUnpin for Pulse
impl UnwindSafe for Pulse
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