pub enum SnapshotCommandError {
Show 16 variants
Usage(&'static str),
MissingOption(&'static str),
UnknownOption(String),
MissingValue(&'static str),
ConflictingRegistrySources,
CanisterNotInRegistry(String),
DfxFailed {
command: String,
stderr: String,
},
SnapshotIdUnavailable(String),
InvalidPrincipal {
field: &'static str,
value: String,
},
TopologyChanged {
discovery: String,
pre_snapshot: String,
},
Io(Error),
Json(Error),
Checksum(ArtifactChecksumError),
Persistence(PersistenceError),
Journal(JournalValidationError),
InvalidManifest(ManifestValidationError),
}Expand description
SnapshotCommandError
Variants§
Usage(&'static str)
MissingOption(&'static str)
UnknownOption(String)
MissingValue(&'static str)
ConflictingRegistrySources
CanisterNotInRegistry(String)
DfxFailed
InvalidPrincipal
TopologyChanged
Io(Error)
Json(Error)
Checksum(ArtifactChecksumError)
Persistence(PersistenceError)
Journal(JournalValidationError)
InvalidManifest(ManifestValidationError)
Trait Implementations§
Source§impl Debug for SnapshotCommandError
impl Debug for SnapshotCommandError
Source§impl Display for SnapshotCommandError
impl Display for SnapshotCommandError
Source§impl Error for SnapshotCommandError
impl Error for SnapshotCommandError
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()
Source§impl From<ArtifactChecksumError> for SnapshotCommandError
impl From<ArtifactChecksumError> for SnapshotCommandError
Source§fn from(source: ArtifactChecksumError) -> Self
fn from(source: ArtifactChecksumError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for SnapshotCommandError
impl From<Error> for SnapshotCommandError
Source§impl From<Error> for SnapshotCommandError
impl From<Error> for SnapshotCommandError
Source§impl From<JournalValidationError> for SnapshotCommandError
impl From<JournalValidationError> for SnapshotCommandError
Source§fn from(source: JournalValidationError) -> Self
fn from(source: JournalValidationError) -> Self
Converts to this type from the input type.
Source§impl From<ManifestValidationError> for SnapshotCommandError
impl From<ManifestValidationError> for SnapshotCommandError
Source§fn from(source: ManifestValidationError) -> Self
fn from(source: ManifestValidationError) -> Self
Converts to this type from the input type.
Source§impl From<PersistenceError> for SnapshotCommandError
impl From<PersistenceError> for SnapshotCommandError
Source§fn from(source: PersistenceError) -> Self
fn from(source: PersistenceError) -> Self
Converts to this type from the input type.
Source§impl From<SnapshotCommandError> for CliError
impl From<SnapshotCommandError> for CliError
Source§fn from(source: SnapshotCommandError) -> Self
fn from(source: SnapshotCommandError) -> Self
Converts to this type from the input type.
Source§impl From<SnapshotCommandError> for ListCommandError
impl From<SnapshotCommandError> for ListCommandError
Source§fn from(source: SnapshotCommandError) -> Self
fn from(source: SnapshotCommandError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SnapshotCommandError
impl !RefUnwindSafe for SnapshotCommandError
impl Send for SnapshotCommandError
impl Sync for SnapshotCommandError
impl Unpin for SnapshotCommandError
impl UnsafeUnpin for SnapshotCommandError
impl !UnwindSafe for SnapshotCommandError
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