pub struct DiagnosticExport {
pub current_generation: u64,
pub records: Vec<DiagnosticRecord>,
}Expand description
DiagnosticExport
Read-only machine-readable allocation ledger export.
Reports support serialization only; applications own any diagnostic input protocol. This type is never used for durable ledger recovery.
Fields§
§current_generation: u64Current committed generation.
records: Vec<DiagnosticRecord>Allocation records.
Implementations§
Source§impl DiagnosticExport
impl DiagnosticExport
Sourcepub fn from_ledger(ledger: &AllocationLedger) -> Self
pub fn from_ledger(ledger: &AllocationLedger) -> Self
Build a read-only diagnostic export from an allocation ledger.
Records start unmeasured. The exporter can fill their size fields from its backing-memory observations; this DTO constructor neither recovers nor measures memory. Physical recovery status belongs to the doctor report.
Trait Implementations§
Source§impl Clone for DiagnosticExport
impl Clone for DiagnosticExport
Source§impl Debug for DiagnosticExport
impl Debug for DiagnosticExport
impl Eq for DiagnosticExport
Source§impl PartialEq for DiagnosticExport
impl PartialEq for DiagnosticExport
Source§impl Serialize for DiagnosticExport
impl Serialize 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