pub struct CanisterDiagnosticsBatchReport { /* private fields */ }Expand description
Ordered entries from a sequential collect-all diagnostics batch.
Implementations§
Source§impl CanisterDiagnosticsBatchReport
impl CanisterDiagnosticsBatchReport
Sourcepub fn entries(&self) -> &[CanisterDiagnosticsBatchEntry]
pub fn entries(&self) -> &[CanisterDiagnosticsBatchEntry]
Entries in the supplied request order.
Sourcepub fn failures(&self) -> impl Iterator<Item = &CanisterDiagnosticsBatchEntry>
pub fn failures(&self) -> impl Iterator<Item = &CanisterDiagnosticsBatchEntry>
Entries with at least one failed status or log operation.
Sourcepub fn is_success(&self) -> bool
pub fn is_success(&self) -> bool
Whether every entry collected both status and logs successfully.
Sourcepub const fn total(&self) -> Duration
pub const fn total(&self) -> Duration
Complete wall-clock time for the sequential collect-all batch.
Sourcepub fn into_entries(self) -> Vec<CanisterDiagnosticsBatchEntry>
pub fn into_entries(self) -> Vec<CanisterDiagnosticsBatchEntry>
Consume the report into its ordered entries.
Sourcepub fn render_compact(&self) -> String
pub fn render_compact(&self) -> String
Render compact bounded diagnostics with retained caller labels.
Trait Implementations§
Source§impl Default for CanisterDiagnosticsBatchReport
impl Default for CanisterDiagnosticsBatchReport
Source§fn default() -> CanisterDiagnosticsBatchReport
fn default() -> CanisterDiagnosticsBatchReport
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CanisterDiagnosticsBatchReport
impl RefUnwindSafe for CanisterDiagnosticsBatchReport
impl Send for CanisterDiagnosticsBatchReport
impl Sync for CanisterDiagnosticsBatchReport
impl Unpin for CanisterDiagnosticsBatchReport
impl UnsafeUnpin for CanisterDiagnosticsBatchReport
impl UnwindSafe for CanisterDiagnosticsBatchReport
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