#[non_exhaustive]pub enum ControllerSnapshotError {
EmptyCanisterSet,
DuplicateCanisterId {
canister_id: Principal,
},
CaptureFailed {
canister_id: Principal,
sender: Option<Principal>,
source: Box<PocketIcCallFailure>,
cleanup_failures: Vec<SnapshotCleanupFailure>,
},
RestoreFailed {
canister_id: Principal,
sender: Option<Principal>,
source: Box<PocketIcCallFailure>,
},
}Expand description
Structured controller-snapshot failure.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
EmptyCanisterSet
A cached baseline requires at least one canister.
DuplicateCanisterId
Input contained the same canister more than once.
CaptureFailed
Snapshot capture failed with the exact selected sender.
Fields
§
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.
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)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for ControllerSnapshotError
impl RefUnwindSafe for ControllerSnapshotError
impl Send for ControllerSnapshotError
impl Sync for ControllerSnapshotError
impl Unpin for ControllerSnapshotError
impl UnsafeUnpin for ControllerSnapshotError
impl UnwindSafe for ControllerSnapshotError
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