pub struct Pulse {
pub enabled: bool,
pub sent_at: Option<DateTime<Utc>>,
pub state: Option<&'static str>,
pub attempted_at: Option<DateTime<Utc>>,
pub error: Option<String>,
pub warnings: Vec<String>,
}Expand description
How the pulse is going, from what the watcher last recorded.
Fields§
§enabled: bool§sent_at: Option<DateTime<Utc>>When a pulse last arrived.
state: Option<&'static str>What that pulse said: working, paused, idle.
attempted_at: Option<DateTime<Utc>>When the watcher last tried, whatever came of it.
error: Option<String>Why the last try did not arrive; null when it did.
warnings: Vec<String>What server status warns about, in its words: failing, silent, shown offline, clock skew.
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