pub enum IcrcError {
Usage(String),
AgentBuild {
endpoint: String,
reason: String,
},
InvalidPrincipal {
field: &'static str,
reason: String,
},
InvalidSubaccountHex {
reason: String,
},
InvalidSubaccountLength {
bytes: usize,
},
CandidEncode {
message: &'static str,
reason: String,
},
AgentCall {
method: &'static str,
reason: String,
},
CandidDecode {
message: &'static str,
reason: String,
},
Io(Error),
Json(Error),
}Expand description
IcrcError
Error surfaced by generic ICRC command parsing, report building, and live calls.
Variants§
Usage(String)
AgentBuild
InvalidPrincipal
InvalidSubaccountHex
InvalidSubaccountLength
CandidEncode
AgentCall
CandidDecode
Io(Error)
Json(Error)
Trait Implementations§
Source§impl Error for IcrcError
impl Error for IcrcError
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 !RefUnwindSafe for IcrcError
impl !UnwindSafe for IcrcError
impl Freeze for IcrcError
impl Send for IcrcError
impl Sync for IcrcError
impl Unpin for IcrcError
impl UnsafeUnpin for IcrcError
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