pub struct HealthCheckResponse {
pub healthy: bool,
pub message: String,
}
Expand description
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: bool
A flag that indicates the the actor is healthy
message: String
A message containing additional information about the actors health
Implementations§
Source§impl HealthCheckResponse
impl HealthCheckResponse
pub fn healthy() -> HealthCheckResponse
Trait Implementations§
Source§impl Clone for HealthCheckResponse
impl Clone for HealthCheckResponse
Source§fn clone(&self) -> HealthCheckResponse
fn clone(&self) -> HealthCheckResponse
Returns a duplicate 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 HealthCheckResponse
impl Debug for HealthCheckResponse
Source§impl Default for HealthCheckResponse
impl Default for HealthCheckResponse
Source§fn default() -> HealthCheckResponse
fn default() -> HealthCheckResponse
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for HealthCheckResponse
impl<'de> Deserialize<'de> for HealthCheckResponse
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 PartialEq for HealthCheckResponse
impl PartialEq for HealthCheckResponse
Source§impl Serialize for HealthCheckResponse
impl Serialize for HealthCheckResponse
impl StructuralPartialEq for HealthCheckResponse
Auto Trait Implementations§
impl Freeze for HealthCheckResponse
impl RefUnwindSafe for HealthCheckResponse
impl Send for HealthCheckResponse
impl Sync for HealthCheckResponse
impl Unpin for HealthCheckResponse
impl UnwindSafe for HealthCheckResponse
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