pub struct HeartbeatMachine { /* private fields */ }Implementations§
Source§impl HeartbeatMachine
impl HeartbeatMachine
pub const fn new(channel: HeartbeatChannel) -> Self
pub const fn request_plan(&self) -> HeartbeatRequestPlan
pub fn record_success( &mut self, facts: HeartbeatSuccessFacts, ) -> HeartbeatSuccessPlan
pub const fn record_failure(&self) -> HeartbeatFailureAction
Trait Implementations§
Source§impl Clone for HeartbeatMachine
impl Clone for HeartbeatMachine
Source§fn clone(&self) -> HeartbeatMachine
fn clone(&self) -> HeartbeatMachine
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for HeartbeatMachine
Source§impl Debug for HeartbeatMachine
impl Debug for HeartbeatMachine
impl Eq for HeartbeatMachine
Source§impl PartialEq for HeartbeatMachine
impl PartialEq for HeartbeatMachine
Source§fn eq(&self, other: &HeartbeatMachine) -> bool
fn eq(&self, other: &HeartbeatMachine) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for HeartbeatMachine
Auto Trait Implementations§
impl Freeze for HeartbeatMachine
impl RefUnwindSafe for HeartbeatMachine
impl Send for HeartbeatMachine
impl Sync for HeartbeatMachine
impl Unpin for HeartbeatMachine
impl UnsafeUnpin for HeartbeatMachine
impl UnwindSafe for HeartbeatMachine
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.