pub enum IcrcError {
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,
},
}Expand description
IcrcError
Error surfaced by generic ICRC validation, report building, and live calls.
Variants§
AgentBuild
InvalidPrincipal
InvalidSubaccountHex
InvalidSubaccountLength
CandidEncode
AgentCall
CandidDecode
Trait Implementations§
Source§impl Error for IcrcError
impl Error for IcrcError
1.30.0 · 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 Freeze for IcrcError
impl RefUnwindSafe for IcrcError
impl Send for IcrcError
impl Sync for IcrcError
impl Unpin for IcrcError
impl UnsafeUnpin for IcrcError
impl UnwindSafe 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