Struct wasmcloud_actor_core::HealthCheckResponse[][src]

pub struct HealthCheckResponse {
    pub healthy: bool,
    pub message: String,
}

All actors must return a health check response to the host upon receipt of a health request. Returning in Err indicates total actor failure, while returning a valid response with the healthy flag set to false indicates that the actor has somehow detected that it cannot perform its given task

Fields

healthy: boolmessage: String

Implementations

impl HealthCheckResponse[src]

Trait Implementations

impl Clone for HealthCheckResponse[src]

impl Debug for HealthCheckResponse[src]

impl Default for HealthCheckResponse[src]

impl<'de> Deserialize<'de> for HealthCheckResponse[src]

impl PartialEq<HealthCheckResponse> for HealthCheckResponse[src]

impl Serialize for HealthCheckResponse[src]

impl StructuralPartialEq for HealthCheckResponse[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.