Struct dvm_info::heartbeat::HeartRateMonitor [−][src]
pub struct HeartRateMonitor { /* fields omitted */ }
Heart rate monitor.
Implementations
impl HeartRateMonitor
[src]
impl HeartRateMonitor
[src]pub fn new(max_pause: Duration) -> HeartRateMonitor
[src]
Create a new heartbeat monitor with the given maximum pause duration between heartbeats.
pub fn beat(&self)
[src]
Records new heartbeat timestamp.
pub fn time_since_last_heartbeat(&self) -> Duration
[src]
Returns Duration
since the last heartbeat timestamp.
pub fn is_alive(&self) -> bool
[src]
Checks whether time passed since last recorded heartbeat is within allowed limits.
Trait Implementations
impl Clone for HeartRateMonitor
[src]
impl Clone for HeartRateMonitor
[src]fn clone(&self) -> HeartRateMonitor
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
Auto Trait Implementations
impl RefUnwindSafe for HeartRateMonitor
impl Send for HeartRateMonitor
impl Sync for HeartRateMonitor
impl Unpin for HeartRateMonitor
impl UnwindSafe for HeartRateMonitor
Blanket Implementations
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> IntoRequest<T> for T
[src]
impl<T> IntoRequest<T> for T
[src]pub fn into_request(self) -> Request<T>
[src]
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T> WithSubscriber for T
[src]
impl<T> WithSubscriber for T
[src]pub fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,