pub struct ServerPulse {
pub conn: Connection,
}Expand description
Access to the pulse row.
Fields§
§conn: ConnectionImplementations§
Source§impl ServerPulse
impl ServerPulse
Sourcepub fn record_accepted(
&mut self,
at: DateTime<Utc>,
next_at: DateTime<Utc>,
state: AgentState,
stale_after_seconds: i64,
clock_skew_seconds: i64,
) -> Result<()>
pub fn record_accepted( &mut self, at: DateTime<Utc>, next_at: DateTime<Utc>, state: AgentState, stale_after_seconds: i64, clock_skew_seconds: i64, ) -> Result<()>
Records a pulse the server accepted.
Sourcepub fn record_failed(
&mut self,
at: DateTime<Utc>,
next_at: DateTime<Utc>,
error: &str,
) -> Result<()>
pub fn record_failed( &mut self, at: DateTime<Utc>, next_at: DateTime<Utc>, error: &str, ) -> Result<()>
Records an attempt that did not arrive, and why.
Sourcepub fn last(&self) -> Result<Option<PulseRecord>>
pub fn last(&self) -> Result<Option<PulseRecord>>
The latest attempt, or None when there has been none since the pulse
was last turned on.
Auto Trait Implementations§
impl !Freeze for ServerPulse
impl !RefUnwindSafe for ServerPulse
impl !Sync for ServerPulse
impl !UnwindSafe for ServerPulse
impl Send for ServerPulse
impl Unpin for ServerPulse
impl UnsafeUnpin for ServerPulse
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