pub struct DiagnosticExport {
pub ledger_schema_version: u32,
pub physical_format_id: u32,
pub current_generation: u64,
pub ledger_anchor: AllocationSlotDescriptor,
pub records: Vec<DiagnosticRecord>,
pub generations: Vec<DiagnosticGeneration>,
pub commit_recovery: Option<CommitStoreDiagnostic>,
}Expand description
DiagnosticExport
Read-only machine-readable allocation ledger export.
Fields§
§ledger_schema_version: u32Ledger schema version.
physical_format_id: u32Physical format identifier.
current_generation: u64Current committed generation.
ledger_anchor: AllocationSlotDescriptorLedger anchor descriptor.
records: Vec<DiagnosticRecord>Allocation records.
generations: Vec<DiagnosticGeneration>Generation records.
commit_recovery: Option<CommitStoreDiagnostic>Optional protected commit recovery diagnostic.
Implementations§
Source§impl DiagnosticExport
impl DiagnosticExport
Sourcepub fn from_ledger(
ledger: &AllocationLedger,
ledger_anchor: AllocationSlotDescriptor,
) -> Self
pub fn from_ledger( ledger: &AllocationLedger, ledger_anchor: AllocationSlotDescriptor, ) -> Self
Build a read-only diagnostic export from an allocation ledger.
Sourcepub fn from_ledger_with_commit_recovery(
ledger: &AllocationLedger,
ledger_anchor: AllocationSlotDescriptor,
commit_recovery: Option<CommitStoreDiagnostic>,
) -> Self
pub fn from_ledger_with_commit_recovery( ledger: &AllocationLedger, ledger_anchor: AllocationSlotDescriptor, commit_recovery: Option<CommitStoreDiagnostic>, ) -> Self
Build a read-only diagnostic export with protected commit recovery state.
Trait Implementations§
Source§impl Clone for DiagnosticExport
impl Clone for DiagnosticExport
Source§fn clone(&self) -> DiagnosticExport
fn clone(&self) -> DiagnosticExport
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 DiagnosticExport
impl Debug for DiagnosticExport
Source§impl<'de> Deserialize<'de> for DiagnosticExport
impl<'de> Deserialize<'de> for DiagnosticExport
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 DiagnosticExport
impl PartialEq for DiagnosticExport
Source§fn eq(&self, other: &DiagnosticExport) -> bool
fn eq(&self, other: &DiagnosticExport) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for DiagnosticExport
impl Serialize for DiagnosticExport
impl Eq for DiagnosticExport
impl StructuralPartialEq for DiagnosticExport
Auto Trait Implementations§
impl Freeze for DiagnosticExport
impl RefUnwindSafe for DiagnosticExport
impl Send for DiagnosticExport
impl Sync for DiagnosticExport
impl Unpin for DiagnosticExport
impl UnsafeUnpin for DiagnosticExport
impl UnwindSafe for DiagnosticExport
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