pub enum InstallStateError {
DeploymentMismatch {
state_deployment: String,
requested_deployment: String,
},
InvalidStateName {
name: String,
},
InvalidNetworkName {
name: String,
},
NetworkMismatch {
state_network: String,
requested_network: String,
},
SchemaVersionMismatch {
state_version: u32,
supported_version: u32,
},
ResolveIcpRoot {
path: PathBuf,
source: Error,
},
Read {
path: PathBuf,
source: Error,
},
Decode {
path: PathBuf,
source: Error,
},
Encode {
path: PathBuf,
source: Error,
},
Write {
path: PathBuf,
source: Error,
},
}Expand description
Typed failure while locating, validating, decoding, or persisting install state.
Variants§
DeploymentMismatch
InvalidStateName
InvalidNetworkName
NetworkMismatch
SchemaVersionMismatch
ResolveIcpRoot
Read
Decode
Encode
Write
Trait Implementations§
Source§impl Debug for InstallStateError
impl Debug for InstallStateError
Source§impl Display for InstallStateError
impl Display for InstallStateError
Source§impl Error for InstallStateError
impl Error for InstallStateError
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<InstallStateError> for DeploymentCatalogError
impl From<InstallStateError> for DeploymentCatalogError
Source§fn from(source: InstallStateError) -> Self
fn from(source: InstallStateError) -> Self
Converts to this type from the input type.
Source§impl From<InstallStateError> for InstalledDeploymentError
impl From<InstallStateError> for InstalledDeploymentError
Source§fn from(source: InstallStateError) -> Self
fn from(source: InstallStateError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for InstallStateError
impl !UnwindSafe for InstallStateError
impl Freeze for InstallStateError
impl Send for InstallStateError
impl Sync for InstallStateError
impl Unpin for InstallStateError
impl UnsafeUnpin for InstallStateError
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