pub enum IcpCommandError {
Io(Error),
MissingCli {
executable: String,
},
IncompatibleCliVersion {
executable: String,
found: String,
},
Failed {
command: String,
stderr: String,
},
Json {
command: String,
output: String,
source: Error,
},
SnapshotIdUnavailable {
output: String,
},
}Expand description
IcpCommandError
Variants§
Trait Implementations§
Source§impl Debug for IcpCommandError
impl Debug for IcpCommandError
Source§impl Display for IcpCommandError
impl Display for IcpCommandError
Source§impl Error for IcpCommandError
impl Error for IcpCommandError
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<Error> for IcpCommandError
impl From<Error> for IcpCommandError
Source§impl From<IcpCommandError> for CanisterReadyQueryError
impl From<IcpCommandError> for CanisterReadyQueryError
Source§fn from(err: IcpCommandError) -> Self
fn from(err: IcpCommandError) -> Self
Converts to this type from the input type.
Source§impl From<IcpCommandError> for CycleBalanceQueryError
impl From<IcpCommandError> for CycleBalanceQueryError
Source§fn from(err: IcpCommandError) -> Self
fn from(err: IcpCommandError) -> Self
Converts to this type from the input type.
Source§impl From<IcpCommandError> for SubnetRegistryQueryError
impl From<IcpCommandError> for SubnetRegistryQueryError
Source§fn from(err: IcpCommandError) -> Self
fn from(err: IcpCommandError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for IcpCommandError
impl !UnwindSafe for IcpCommandError
impl Freeze for IcpCommandError
impl Send for IcpCommandError
impl Sync for IcpCommandError
impl Unpin for IcpCommandError
impl UnsafeUnpin for IcpCommandError
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