#[non_exhaustive]pub enum ControllerSnapshotError {
EmptyCanisterSet,
DuplicateCanisterId {
canister_id: ExternalPrincipal,
},
InvalidSnapshot {
canister_id: ExternalPrincipal,
message: &'static str,
cleanup_failures: Vec<SnapshotCleanupFailure>,
},
SnapshotCodec {
canister_id: ExternalPrincipal,
source: Error,
cleanup_failures: Vec<SnapshotCleanupFailure>,
},
CaptureFailed {
canister_id: ExternalPrincipal,
sender: Option<ExternalPrincipal>,
source: Box<PocketIcCallFailure>,
cleanup_failures: Vec<SnapshotCleanupFailure>,
},
RestoreFailed {
canister_id: ExternalPrincipal,
sender: Option<ExternalPrincipal>,
source: Box<PocketIcCallFailure>,
},
}Expand description
Structured controller-snapshot failure.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
EmptyCanisterSet
A cached baseline requires at least one canister.
DuplicateCanisterId
Input contained the same canister more than once.
Fields
canister_id: ExternalPrincipalRepeated canister id.
InvalidSnapshot
Snapshot transfer metadata or complete data admission failed.
Fields
canister_id: ExternalPrincipalExact canister selected for capture.
cleanup_failures: Vec<SnapshotCleanupFailure>Known snapshot deletions that failed during rollback.
SnapshotCodec
The external management snapshot message could not be encoded or decoded.
Fields
canister_id: ExternalPrincipalExact canister selected for capture.
cleanup_failures: Vec<SnapshotCleanupFailure>Known snapshot deletions that failed during rollback.
CaptureFailed
Snapshot capture failed with the exact selected sender.
Fields
canister_id: ExternalPrincipalCanister whose capture failed.
sender: Option<ExternalPrincipal>Exact sender selected for capture.
source: Box<PocketIcCallFailure>Complete rejection or operation failure.
cleanup_failures: Vec<SnapshotCleanupFailure>Failures while deleting snapshots captured earlier in the set.
RestoreFailed
Snapshot restore failed with the retained capture sender.
Fields
canister_id: ExternalPrincipalCanister whose restore failed.
sender: Option<ExternalPrincipal>Exact sender selected for restore.
source: Box<PocketIcCallFailure>Complete rejection or operation failure.
Trait Implementations§
Source§impl Debug for ControllerSnapshotError
impl Debug for ControllerSnapshotError
Source§impl Display for ControllerSnapshotError
impl Display for ControllerSnapshotError
Source§impl Error for ControllerSnapshotError
impl Error for ControllerSnapshotError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()