pub struct SessionHealth {
pub ok: bool,
pub degraded: Option<String>,
}Expand description
Session health probe result (spine §4.2 health()).
Fields§
§ok: boolWhether the session is usable.
degraded: Option<String>Most recently observed degradation reason, when any (e.g. the wire
session_degraded message).
Trait Implementations§
Source§impl Clone for SessionHealth
impl Clone for SessionHealth
Source§fn clone(&self) -> SessionHealth
fn clone(&self) -> SessionHealth
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 SessionHealth
impl Debug for SessionHealth
Source§impl<'de> Deserialize<'de> for SessionHealth
impl<'de> Deserialize<'de> for SessionHealth
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
impl Eq for SessionHealth
Source§impl JsonSchema for SessionHealth
impl JsonSchema for SessionHealth
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for SessionHealth
impl PartialEq for SessionHealth
Source§impl Serialize for SessionHealth
impl Serialize for SessionHealth
impl StructuralPartialEq for SessionHealth
Auto Trait Implementations§
impl Freeze for SessionHealth
impl RefUnwindSafe for SessionHealth
impl Send for SessionHealth
impl Sync for SessionHealth
impl Unpin for SessionHealth
impl UnsafeUnpin for SessionHealth
impl UnwindSafe for SessionHealth
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