pub struct CanisterDiagnosticsBatchEntry { /* private fields */ }Expand description
One ordered labeled entry in a collect-all diagnostics batch.
Implementations§
Source§impl CanisterDiagnosticsBatchEntry
impl CanisterDiagnosticsBatchEntry
Sourcepub const fn report(&self) -> &CanisterDiagnosticsReport
pub const fn report(&self) -> &CanisterDiagnosticsReport
Structured status and log outcomes for this entry.
Sourcepub const fn is_success(&self) -> bool
pub const fn is_success(&self) -> bool
Whether both status and log collection succeeded for this entry.
Sourcepub const fn entry_elapsed(&self) -> Duration
pub const fn entry_elapsed(&self) -> Duration
Complete wall-clock time for this target’s diagnostic collection.
Sourcepub fn into_parts(self) -> (String, CanisterDiagnosticsReport, Duration)
pub fn into_parts(self) -> (String, CanisterDiagnosticsReport, Duration)
Consume the entry into its label, structured report, and wall time.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CanisterDiagnosticsBatchEntry
impl RefUnwindSafe for CanisterDiagnosticsBatchEntry
impl Send for CanisterDiagnosticsBatchEntry
impl Sync for CanisterDiagnosticsBatchEntry
impl Unpin for CanisterDiagnosticsBatchEntry
impl UnsafeUnpin for CanisterDiagnosticsBatchEntry
impl UnwindSafe for CanisterDiagnosticsBatchEntry
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