pub struct StoreHealthSnapshot {
pub writable: bool,
pub last_error: Option<&'static ErrorDescriptor>,
pub page_cache_busy: bool,
pub transient_pool_deficient: bool,
pub flush_backlog: FlushBacklog,
pub dispatch_behind_bytes: i64,
pub shutdown: bool,
pub replication_pending_count: u64,
pub replication_oldest_wait_millis: u64,
pub appended_watermark: i64,
pub durable_watermark: i64,
}Expand description
Canonical backend-neutral health projection.
Fields§
§writable: boolWhether writable.
last_error: Option<&'static ErrorDescriptor>Catalog identity of the latest health failure.
page_cache_busy: boolWhether page cache busy.
transient_pool_deficient: boolWhether the transient store pool is enabled and has no available buffers.
flush_backlog: FlushBacklogThe flush backlog value.
dispatch_behind_bytes: i64The dispatch behind size in bytes.
shutdown: boolWhether shutdown.
replication_pending_count: u64The number of replication pending entries.
replication_oldest_wait_millis: u64The replication oldest wait duration in milliseconds.
appended_watermark: i64The appended watermark value.
durable_watermark: i64The durable watermark value.
Implementations§
Source§impl StoreHealthSnapshot
impl StoreHealthSnapshot
Sourcepub const fn writable(&self) -> bool
pub const fn writable(&self) -> bool
Returns whether the store currently accepts primary writes.
Sourcepub const fn last_error(&self) -> Option<&'static ErrorDescriptor>
pub const fn last_error(&self) -> Option<&'static ErrorDescriptor>
Returns the catalog identity of the latest health failure.
Sourcepub const fn appended_watermark(&self) -> i64
pub const fn appended_watermark(&self) -> i64
Returns the exclusive primary-log append watermark.
Sourcepub const fn durable_watermark(&self) -> i64
pub const fn durable_watermark(&self) -> i64
Returns the exclusive durable watermark.
Trait Implementations§
Source§impl Clone for StoreHealthSnapshot
impl Clone for StoreHealthSnapshot
Source§impl Debug for StoreHealthSnapshot
impl Debug for StoreHealthSnapshot
Source§impl Default for StoreHealthSnapshot
impl Default for StoreHealthSnapshot
impl Eq for StoreHealthSnapshot
Source§impl PartialEq for StoreHealthSnapshot
impl PartialEq for StoreHealthSnapshot
impl StructuralPartialEq for StoreHealthSnapshot
Auto Trait Implementations§
impl Forget for StoreHealthSnapshot
impl Freeze for StoreHealthSnapshotwhere
&'static ErrorDescriptor: Freeze,
impl Move for StoreHealthSnapshot
impl RefUnwindSafe for StoreHealthSnapshot
impl Send for StoreHealthSnapshotwhere
&'static ErrorDescriptor: Send,
impl Sync for StoreHealthSnapshot
impl Unpin for StoreHealthSnapshotwhere
&'static ErrorDescriptor: Unpin,
impl UnsafeUnpin for StoreHealthSnapshotwhere
&'static ErrorDescriptor: UnsafeUnpin,
impl UnwindSafe for StoreHealthSnapshotwhere
&'static ErrorDescriptor: 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