pub struct HealthCheckResult {
pub status: HealthStatus,
pub timestamp: u64,
pub metrics: DbMetricsSnapshot,
pub details: String,
}Expand description
健康检查结果
Fields§
§status: HealthStatus健康状态
timestamp: u64健康检查时间戳
metrics: DbMetricsSnapshot指标快照
details: String详细信息
Implementations§
Source§impl HealthCheckResult
impl HealthCheckResult
Sourcepub fn new(
status: HealthStatus,
metrics: DbMetricsSnapshot,
details: String,
) -> Self
pub fn new( status: HealthStatus, metrics: DbMetricsSnapshot, details: String, ) -> Self
创建新的健康检查结果
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HealthCheckResult
impl RefUnwindSafe for HealthCheckResult
impl Send for HealthCheckResult
impl Sync for HealthCheckResult
impl Unpin for HealthCheckResult
impl UnwindSafe for HealthCheckResult
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