pub struct HealthChecks {
pub database: Box<DatabaseHealth>,
pub workers: Option<Box<WorkersHealth>>,
pub queue: Option<Box<QueueHealth>>,
pub readiness: Box<ReadinessHealth>,
}Expand description
HealthChecks : Detailed health checks
Fields§
§database: Box<DatabaseHealth>§workers: Option<Box<WorkersHealth>>§queue: Option<Box<QueueHealth>>§readiness: Box<ReadinessHealth>Implementations§
Source§impl HealthChecks
impl HealthChecks
Sourcepub fn new(database: DatabaseHealth, readiness: ReadinessHealth) -> HealthChecks
pub fn new(database: DatabaseHealth, readiness: ReadinessHealth) -> HealthChecks
Detailed health checks
Trait Implementations§
Source§impl Clone for HealthChecks
impl Clone for HealthChecks
Source§impl Debug for HealthChecks
impl Debug for HealthChecks
Source§impl Default for HealthChecks
impl Default for HealthChecks
Source§impl<'de> Deserialize<'de> for HealthChecks
impl<'de> Deserialize<'de> for HealthChecks
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 HealthChecks
impl PartialEq for HealthChecks
Source§impl Serialize for HealthChecks
impl Serialize for HealthChecks
impl StructuralPartialEq for HealthChecks
Auto Trait Implementations§
impl Forget for HealthChecks
impl Freeze for HealthCheckswhere
*const DatabaseHealth is !null: Freeze,
PhantomData<DatabaseHealth>: Freeze,
*const WorkersHealth is !null: Freeze,
PhantomData<WorkersHealth>: Freeze,
*const QueueHealth is !null: Freeze,
PhantomData<QueueHealth>: Freeze,
*const ReadinessHealth is !null: Freeze,
PhantomData<ReadinessHealth>: Freeze,
impl Move for HealthChecks
impl RefUnwindSafe for HealthChecks
impl Send for HealthCheckswhere
BoxRaw<DatabaseHealth>: Send,
BoxRaw<WorkersHealth>: Send,
BoxRaw<QueueHealth>: Send,
BoxRaw<ReadinessHealth>: Send,
impl Sync for HealthCheckswhere
BoxRaw<DatabaseHealth>: Sync,
BoxRaw<WorkersHealth>: Sync,
BoxRaw<QueueHealth>: Sync,
BoxRaw<ReadinessHealth>: Sync,
impl Unpin for HealthCheckswhere
Box<DatabaseHealth>: Unpin,
Box<WorkersHealth>: Unpin,
Box<QueueHealth>: Unpin,
Box<ReadinessHealth>: Unpin,
impl UnsafeUnpin for HealthCheckswhere
*const DatabaseHealth is !null: UnsafeUnpin,
PhantomData<DatabaseHealth>: UnsafeUnpin,
*const WorkersHealth is !null: UnsafeUnpin,
PhantomData<WorkersHealth>: UnsafeUnpin,
*const QueueHealth is !null: UnsafeUnpin,
PhantomData<QueueHealth>: UnsafeUnpin,
*const ReadinessHealth is !null: UnsafeUnpin,
PhantomData<ReadinessHealth>: UnsafeUnpin,
impl UnwindSafe for HealthCheckswhere
BoxRaw<DatabaseHealth>: UnwindSafe,
BoxRaw<WorkersHealth>: UnwindSafe,
BoxRaw<QueueHealth>: UnwindSafe,
BoxRaw<ReadinessHealth>: UnwindSafe,
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