pub struct HealthReport {
pub kind: HealthProbeKind,
pub dependencies: Vec<ProbeDependency>,
}Fields§
§kind: HealthProbeKind§dependencies: Vec<ProbeDependency>Implementations§
Source§impl HealthReport
impl HealthReport
pub fn new(kind: HealthProbeKind) -> Self
pub fn with_dependency( self, kind: DependencyKind, required: bool, status: DependencyStatus, ) -> Result<Self, ObservabilityError>
pub fn overall_status(&self) -> DependencyStatus
pub fn dependency(&self, kind: DependencyKind) -> Option<ProbeDependency>
pub fn set_dependency_status( &mut self, kind: DependencyKind, status: DependencyStatus, ) -> bool
Trait Implementations§
Source§impl Clone for HealthReport
impl Clone for HealthReport
Source§fn clone(&self) -> HealthReport
fn clone(&self) -> HealthReport
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HealthReport
impl Debug for HealthReport
Source§impl PartialEq for HealthReport
impl PartialEq for HealthReport
impl Eq for HealthReport
impl StructuralPartialEq for HealthReport
Auto Trait Implementations§
impl Freeze for HealthReport
impl RefUnwindSafe for HealthReport
impl Send for HealthReport
impl Sync for HealthReport
impl Unpin for HealthReport
impl UnsafeUnpin for HealthReport
impl UnwindSafe for HealthReport
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.