pub enum HealthCheckError {
Timeout,
InternalError,
NotSupported,
InvalidState,
Unavailable,
CommunicationError,
NotFound,
// some variants omitted
}Expand description
Error codes returned when a health check cannot be completed.
Variants§
Timeout
The driver did not respond within the level’s deadline (dispatcher wedged).
InternalError
Internal framework or transport error while routing the check.
NotSupported
The driver or requested HealthCheckRequest level is not supported.
InvalidState
The driver is not in the RUNNING state (e.g., Starting, Stopping, Suspended).
The requested level cannot be evaluated right now: hardware powered
off, suspended, not yet initialized, or transiently busy. Consumers
must treat this as no information, not as unhealthy. PING must never
return this.
CommunicationError
A bus, MMIO, or transport error occurred while performing the check itself.
NotFound
No bound node matched the requested moniker (returned by
fuchsia.driver.development/Manager.RunHealthCheck).
Implementations§
Source§impl HealthCheckError
impl HealthCheckError
pub fn from_primitive(prim: u32) -> Option<Self>
pub fn from_primitive_allow_unknown(prim: u32) -> Self
pub fn unknown() -> Self
pub const fn into_primitive(self) -> u32
pub fn is_unknown(&self) -> bool
Trait Implementations§
Source§impl Clone for HealthCheckError
impl Clone for HealthCheckError
impl Copy for HealthCheckError
Source§impl Debug for HealthCheckError
impl Debug for HealthCheckError
Source§impl<D: ResourceDialect> Decode<HealthCheckError, D> for HealthCheckError
impl<D: ResourceDialect> Decode<HealthCheckError, D> for HealthCheckError
Source§impl<D: ResourceDialect> Encode<HealthCheckError, D> for HealthCheckError
impl<D: ResourceDialect> Encode<HealthCheckError, D> for HealthCheckError
impl Eq for HealthCheckError
Source§impl Hash for HealthCheckError
impl Hash for HealthCheckError
Source§impl Ord for HealthCheckError
impl Ord for HealthCheckError
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 HealthCheckError
impl PartialEq for HealthCheckError
Source§impl PartialOrd for HealthCheckError
impl PartialOrd for HealthCheckError
impl StructuralPartialEq for HealthCheckError
Source§impl TypeMarker for HealthCheckError
impl TypeMarker for HealthCheckError
Source§type Owned = HealthCheckError
type Owned = HealthCheckError
The owned Rust type which this FIDL type decodes into.
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Returns the minimum required alignment of the inline portion of the
encoded object. It must be a (nonzero) power of two.
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
Returns the size of the inline portion of the encoded object, including
padding for alignment. Must be a multiple of
inline_align.Source§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned to a single memcpy. Read moreSource§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned to a single memcpy.Source§impl ValueTypeMarker for HealthCheckError
impl ValueTypeMarker for HealthCheckError
Source§type Borrowed<'a> = HealthCheckError
type Borrowed<'a> = HealthCheckError
The Rust type to use for encoding. This is a particular
Encode<Self>
type cheaply obtainable from &Self::Owned. There are three cases: Read moreAuto Trait Implementations§
impl Freeze for HealthCheckError
impl RefUnwindSafe for HealthCheckError
impl Send for HealthCheckError
impl Sync for HealthCheckError
impl Unpin for HealthCheckError
impl UnsafeUnpin for HealthCheckError
impl UnwindSafe for HealthCheckError
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