pub struct ComputedResult { /* private fields */ }
Implementations§
Source§impl ComputedResult
impl ComputedResult
Sourcepub fn builder() -> Builder<StatusStage>
pub fn builder() -> Builder<StatusStage>
Returns a new builder.
Source§impl ComputedResult
impl ComputedResult
Sourcepub fn new(status: CheckStatus, last_failure: LastFailure) -> Self
pub fn new(status: CheckStatus, last_failure: LastFailure) -> Self
Constructs a new instance of the type.
Sourcepub fn status(&self) -> &CheckStatus
pub fn status(&self) -> &CheckStatus
The current status of a check at the time it was evaluated.
Sourcepub fn last_failure(&self) -> &LastFailure
pub fn last_failure(&self) -> &LastFailure
If computed, represents the last time the check failed. Can also represent that the last failure hasn’t been computed, or is currently being computed. If the check is currently failing, the current failure is returned.
Trait Implementations§
Source§impl Clone for ComputedResult
impl Clone for ComputedResult
Source§fn clone(&self) -> ComputedResult
fn clone(&self) -> ComputedResult
Returns a copy 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 ComputedResult
impl Debug for ComputedResult
Source§impl<'de> Deserialize<'de> for ComputedResult
impl<'de> Deserialize<'de> for ComputedResult
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<ComputedResult> for Builder<Complete>
impl From<ComputedResult> for Builder<Complete>
Source§fn from(v: ComputedResult) -> Self
fn from(v: ComputedResult) -> Self
Converts to this type from the input type.
Source§impl Hash for ComputedResult
impl Hash for ComputedResult
Source§impl Ord for ComputedResult
impl Ord for ComputedResult
Source§fn cmp(&self, other: &ComputedResult) -> Ordering
fn cmp(&self, other: &ComputedResult) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ComputedResult
impl PartialEq for ComputedResult
Source§impl PartialOrd for ComputedResult
impl PartialOrd for ComputedResult
Source§impl Serialize for ComputedResult
impl Serialize for ComputedResult
impl Eq for ComputedResult
impl StructuralPartialEq for ComputedResult
Auto Trait Implementations§
impl Freeze for ComputedResult
impl RefUnwindSafe for ComputedResult
impl Send for ComputedResult
impl Sync for ComputedResult
impl Unpin for ComputedResult
impl UnwindSafe for ComputedResult
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.