pub struct HealthTracker { /* private fields */ }Implementations§
Source§impl HealthTracker
impl HealthTracker
pub fn new(policy: HealthPolicy, started_at: Duration) -> Self
pub fn observe(&mut self, at: Duration, probe: HealthProbe) -> HealthOutcome
pub fn outcome(&self, at: Duration) -> HealthOutcome
Trait Implementations§
Source§impl Clone for HealthTracker
impl Clone for HealthTracker
Source§fn clone(&self) -> HealthTracker
fn clone(&self) -> HealthTracker
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 moreAuto Trait Implementations§
impl Freeze for HealthTracker
impl RefUnwindSafe for HealthTracker
impl Send for HealthTracker
impl Sync for HealthTracker
impl Unpin for HealthTracker
impl UnsafeUnpin for HealthTracker
impl UnwindSafe for HealthTracker
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