[−][src]Struct ops::CheckResponse
The response of a check.
Implementations
impl CheckResponse
[src]
pub fn healthy(output: &str) -> CheckResponse
[src]
Creates a healthy CheckResponse
.
pub fn degraded(output: &str, action: &str) -> CheckResponse
[src]
Creates a degraded CheckResponse
.
pub fn unhealthy(output: &str, action: &str, impact: &str) -> CheckResponse
[src]
Creates an unhealthy CheckResponse
.
pub fn health(&self) -> Health
[src]
Health status of the check.
pub fn output(&self) -> &str
[src]
Text representation of the current status.
pub fn action(&self) -> Option<&str>
[src]
Action to resolve the issue if non-healthy.
pub fn impact(&self) -> Option<&str>
[src]
Impact of not fixing the issue.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for CheckResponse
impl Send for CheckResponse
impl Sync for CheckResponse
impl Unpin for CheckResponse
impl UnwindSafe for CheckResponse
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,