pub trait PocketIcCapturedSnapshotExt {
// Required methods
fn restore_snapshots_with_captured_senders(
&self,
snapshots: &ControllerSnapshots,
) -> Result<(), ControllerSnapshotError>;
fn restore_snapshots_with_captured_senders_and_funding(
&self,
snapshots: &ControllerSnapshots,
funding: SnapshotRestoreFunding,
) -> Result<(), ControllerSnapshotError>;
}Expand description
Exact-sender restoration for snapshots that retained their capture sender.
Required Methods§
Sourcefn restore_snapshots_with_captured_senders(
&self,
snapshots: &ControllerSnapshots,
) -> Result<(), ControllerSnapshotError>
fn restore_snapshots_with_captured_senders( &self, snapshots: &ControllerSnapshots, ) -> Result<(), ControllerSnapshotError>
Restore every snapshot with exactly the sender retained during capture.
This performs no fallback attempts. In particular, a captured
anonymous sender remains None instead of falling back to a supplied
controller principal.
Sourcefn restore_snapshots_with_captured_senders_and_funding(
&self,
snapshots: &ControllerSnapshots,
funding: SnapshotRestoreFunding,
) -> Result<(), ControllerSnapshotError>
fn restore_snapshots_with_captured_senders_and_funding( &self, snapshots: &ControllerSnapshots, funding: SnapshotRestoreFunding, ) -> Result<(), ControllerSnapshotError>
Restore with captured senders and an explicit cycle-funding policy.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".