pub enum HealthDiagnosticValue {
StringValue(String),
IntValue(i64),
UintValue(u64),
BoolValue(bool),
Timestamp(i64),
UnknownOrdinal_(u64),
}Expand description
Diagnostic value returned in a HealthCheckResponse.
Variants§
StringValue(String)
IntValue(i64)
UintValue(u64)
BoolValue(bool)
Timestamp(i64)
UnknownOrdinal_(u64)
Implementations§
Source§impl HealthDiagnosticValue
impl HealthDiagnosticValue
pub fn is_unknown(&self) -> bool
Trait Implementations§
Source§impl Clone for HealthDiagnosticValue
impl Clone for HealthDiagnosticValue
Source§fn clone(&self) -> HealthDiagnosticValue
fn clone(&self) -> HealthDiagnosticValue
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 moreSource§impl Debug for HealthDiagnosticValue
impl Debug for HealthDiagnosticValue
Source§impl<___E> Encode<HealthDiagnosticValue<'static>, ___E> for HealthDiagnosticValuewhere
___E: InternalHandleEncoder + Encoder + ?Sized,
impl<___E> Encode<HealthDiagnosticValue<'static>, ___E> for HealthDiagnosticValuewhere
___E: InternalHandleEncoder + Encoder + ?Sized,
Source§fn encode(
self,
encoder: &mut ___E,
out: &mut MaybeUninit<HealthDiagnosticValue<'static>>,
_: (),
) -> Result<(), EncodeError>
fn encode( self, encoder: &mut ___E, out: &mut MaybeUninit<HealthDiagnosticValue<'static>>, _: (), ) -> Result<(), EncodeError>
Encodes this value into an encoder and output.
§const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
Source§impl<'a, ___E> Encode<HealthDiagnosticValue<'static>, ___E> for &'a HealthDiagnosticValuewhere
___E: InternalHandleEncoder + Encoder + ?Sized,
impl<'a, ___E> Encode<HealthDiagnosticValue<'static>, ___E> for &'a HealthDiagnosticValuewhere
___E: InternalHandleEncoder + Encoder + ?Sized,
Source§fn encode(
self,
encoder: &mut ___E,
out: &mut MaybeUninit<HealthDiagnosticValue<'static>>,
_: (),
) -> Result<(), EncodeError>
fn encode( self, encoder: &mut ___E, out: &mut MaybeUninit<HealthDiagnosticValue<'static>>, _: (), ) -> Result<(), EncodeError>
Encodes this value into an encoder and output.
§const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
Source§impl<___E> EncodeOption<HealthDiagnosticValue<'static>, ___E> for HealthDiagnosticValue
impl<___E> EncodeOption<HealthDiagnosticValue<'static>, ___E> for HealthDiagnosticValue
Source§fn encode_option(
this: Option<HealthDiagnosticValue>,
encoder: &mut ___E,
out: &mut MaybeUninit<HealthDiagnosticValue<'static>>,
_: (),
) -> Result<(), EncodeError>
fn encode_option( this: Option<HealthDiagnosticValue>, encoder: &mut ___E, out: &mut MaybeUninit<HealthDiagnosticValue<'static>>, _: (), ) -> Result<(), EncodeError>
Encodes this optional value into an encoder and output.
Source§impl<'a, ___E> EncodeOption<HealthDiagnosticValue<'static>, ___E> for &'a HealthDiagnosticValue
impl<'a, ___E> EncodeOption<HealthDiagnosticValue<'static>, ___E> for &'a HealthDiagnosticValue
Source§fn encode_option(
this: Option<&'a HealthDiagnosticValue>,
encoder: &mut ___E,
out: &mut MaybeUninit<HealthDiagnosticValue<'static>>,
_: (),
) -> Result<(), EncodeError>
fn encode_option( this: Option<&'a HealthDiagnosticValue>, encoder: &mut ___E, out: &mut MaybeUninit<HealthDiagnosticValue<'static>>, _: (), ) -> Result<(), EncodeError>
Encodes this optional value into an encoder and output.
impl Eq for HealthDiagnosticValue
Source§impl<'de> FromWire<HealthDiagnosticValue<'de>> for HealthDiagnosticValue
impl<'de> FromWire<HealthDiagnosticValue<'de>> for HealthDiagnosticValue
Source§fn from_wire(wire: HealthDiagnosticValue<'de>) -> HealthDiagnosticValue
fn from_wire(wire: HealthDiagnosticValue<'de>) -> HealthDiagnosticValue
Converts the given owned value to this type.
§const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
const COPY_OPTIMIZATION: CopyOptimization<W, Self> = _
Source§impl<'de> FromWireOption<HealthDiagnosticValue<'de>> for HealthDiagnosticValue
impl<'de> FromWireOption<HealthDiagnosticValue<'de>> for HealthDiagnosticValue
Source§fn from_wire_option(
wire: HealthDiagnosticValue<'de>,
) -> Option<HealthDiagnosticValue>
fn from_wire_option( wire: HealthDiagnosticValue<'de>, ) -> Option<HealthDiagnosticValue>
Converts the given owned value to an option of this type.
Source§impl<'de> FromWireRef<HealthDiagnosticValue<'de>> for HealthDiagnosticValue
impl<'de> FromWireRef<HealthDiagnosticValue<'de>> for HealthDiagnosticValue
Source§fn from_wire_ref(wire: &HealthDiagnosticValue<'de>) -> HealthDiagnosticValue
fn from_wire_ref(wire: &HealthDiagnosticValue<'de>) -> HealthDiagnosticValue
Converts the given reference to this type.
Source§impl Hash for HealthDiagnosticValue
impl Hash for HealthDiagnosticValue
Source§impl Ord for HealthDiagnosticValue
impl Ord for HealthDiagnosticValue
Source§fn cmp(&self, other: &HealthDiagnosticValue) -> Ordering
fn cmp(&self, other: &HealthDiagnosticValue) -> Ordering
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for HealthDiagnosticValue
impl PartialEq for HealthDiagnosticValue
Source§impl PartialOrd for HealthDiagnosticValue
impl PartialOrd for HealthDiagnosticValue
impl StructuralPartialEq for HealthDiagnosticValue
Auto Trait Implementations§
impl Freeze for HealthDiagnosticValue
impl RefUnwindSafe for HealthDiagnosticValue
impl Send for HealthDiagnosticValue
impl Sync for HealthDiagnosticValue
impl Unpin for HealthDiagnosticValue
impl UnsafeUnpin for HealthDiagnosticValue
impl UnwindSafe for HealthDiagnosticValue
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<T, W> FromWireOption<Box<'_, W>> for Twhere
T: FromWire<W>,
impl<T, W> FromWireOption<Box<'_, W>> for Twhere
T: FromWire<W>,
§fn from_wire_option(wire: Box<'_, W>) -> Option<T>
fn from_wire_option(wire: Box<'_, W>) -> Option<T>
Converts the given owned value to an option of this type.
§impl<T, W> FromWireOptionRef<Box<'_, W>> for Twhere
T: FromWireRef<W>,
impl<T, W> FromWireOptionRef<Box<'_, W>> for Twhere
T: FromWireRef<W>,
§fn from_wire_option_ref(wire: &Box<'_, W>) -> Option<T>
fn from_wire_option_ref(wire: &Box<'_, W>) -> Option<T>
Converts the given reference to an option of this type.
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to [Self]