pub trait PocketIcDiagnosticsExt {
// Required method
fn collect_canister_diagnostics(
&self,
request: CanisterDiagnosticsRequest,
) -> CanisterDiagnosticsReport;
// Provided method
fn collect_canister_diagnostics_batch(
&self,
requests: &[LabeledCanisterDiagnosticsRequest],
) -> CanisterDiagnosticsBatchReport { ... }
}Expand description
Reusable structured PocketIC failure diagnostics.
Required Methods§
Sourcefn collect_canister_diagnostics(
&self,
request: CanisterDiagnosticsRequest,
) -> CanisterDiagnosticsReport
fn collect_canister_diagnostics( &self, request: CanisterDiagnosticsRequest, ) -> CanisterDiagnosticsReport
Collect status and bounded logs using the request’s exact senders.
Both calls are attempted independently. PocketIC transport panics are captured so diagnostics can remain subordinate to the original failure.
Provided Methods§
Sourcefn collect_canister_diagnostics_batch(
&self,
requests: &[LabeledCanisterDiagnosticsRequest],
) -> CanisterDiagnosticsBatchReport
fn collect_canister_diagnostics_batch( &self, requests: &[LabeledCanisterDiagnosticsRequest], ) -> CanisterDiagnosticsBatchReport
Collect every labeled request sequentially in its supplied order.
Every target is attempted even when an earlier entry fails or panics. Each entry preserves its exact request and independent status/log outcomes; no anonymous retry or fallback is performed.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".