pub struct CommitStoreDiagnostic {
pub slot0: CommitSlotDiagnostic,
pub slot1: CommitSlotDiagnostic,
pub authoritative_generation: Option<u64>,
pub recovery_error: Option<CommitRecoveryError>,
}Expand description
CommitStoreDiagnostic
Read-only diagnostic summary of protected commit recovery state.
Fields§
§slot0: CommitSlotDiagnosticFirst physical commit slot diagnostic.
slot1: CommitSlotDiagnosticSecond physical commit slot diagnostic.
Highest valid generation selected by recovery.
recovery_error: Option<CommitRecoveryError>Recovery error when no authoritative generation can be selected.
Implementations§
Source§impl CommitStoreDiagnostic
impl CommitStoreDiagnostic
Sourcepub fn from_store<S: DualProtectedCommitStore>(store: &S) -> Self
pub fn from_store<S: DualProtectedCommitStore>(store: &S) -> Self
Build a read-only recovery diagnostic from a dual protected commit store.
Trait Implementations§
Source§impl Clone for CommitStoreDiagnostic
impl Clone for CommitStoreDiagnostic
Source§fn clone(&self) -> CommitStoreDiagnostic
fn clone(&self) -> CommitStoreDiagnostic
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CommitStoreDiagnostic
impl Debug for CommitStoreDiagnostic
Source§impl<'de> Deserialize<'de> for CommitStoreDiagnostic
impl<'de> Deserialize<'de> for CommitStoreDiagnostic
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 CommitStoreDiagnostic
impl PartialEq for CommitStoreDiagnostic
Source§fn eq(&self, other: &CommitStoreDiagnostic) -> bool
fn eq(&self, other: &CommitStoreDiagnostic) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CommitStoreDiagnostic
impl Serialize for CommitStoreDiagnostic
impl Copy for CommitStoreDiagnostic
impl Eq for CommitStoreDiagnostic
impl StructuralPartialEq for CommitStoreDiagnostic
Auto Trait Implementations§
impl Freeze for CommitStoreDiagnostic
impl RefUnwindSafe for CommitStoreDiagnostic
impl Send for CommitStoreDiagnostic
impl Sync for CommitStoreDiagnostic
impl Unpin for CommitStoreDiagnostic
impl UnsafeUnpin for CommitStoreDiagnostic
impl UnwindSafe for CommitStoreDiagnostic
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