pub enum IcpJsonResponseError {
Candid(Error),
Hex(DecodeHexError),
Json(Error),
MissingResponseBytes,
Rejected(Error),
}Expand description
IcpJsonResponseError
Typed failure while decoding one ICP CLI JSON response envelope.
Variants§
Trait Implementations§
Source§impl Debug for IcpJsonResponseError
impl Debug for IcpJsonResponseError
Source§impl Display for IcpJsonResponseError
impl Display for IcpJsonResponseError
Source§impl Error for IcpJsonResponseError
impl Error for IcpJsonResponseError
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<IcpJsonResponseError> for CanicMetadataQueryError
impl From<IcpJsonResponseError> for CanicMetadataQueryError
Source§fn from(source: IcpJsonResponseError) -> Self
fn from(source: IcpJsonResponseError) -> Self
Converts to this type from the input type.
Source§impl From<IcpJsonResponseError> for CanisterReadyQueryError
impl From<IcpJsonResponseError> for CanisterReadyQueryError
Source§fn from(err: IcpJsonResponseError) -> Self
fn from(err: IcpJsonResponseError) -> Self
Converts to this type from the input type.
Source§impl From<IcpJsonResponseError> for CycleBalanceQueryError
impl From<IcpJsonResponseError> for CycleBalanceQueryError
Source§fn from(source: IcpJsonResponseError) -> Self
fn from(source: IcpJsonResponseError) -> Self
Converts to this type from the input type.
Source§impl From<IcpJsonResponseError> for RegistryParseError
impl From<IcpJsonResponseError> for RegistryParseError
Source§fn from(source: IcpJsonResponseError) -> Self
fn from(source: IcpJsonResponseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for IcpJsonResponseError
impl !UnwindSafe for IcpJsonResponseError
impl Freeze for IcpJsonResponseError
impl Send for IcpJsonResponseError
impl Sync for IcpJsonResponseError
impl Unpin for IcpJsonResponseError
impl UnsafeUnpin for IcpJsonResponseError
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