Enum ic_agent::export::PrincipalError
source · [−]pub enum PrincipalError {
BytesTooLong(),
InvalidBase32(),
TextTooShort(),
TextTooLong(),
CheckSequenceNotMatch(),
AbnormalGrouped(Principal),
}Expand description
An error happened while encoding, decoding or serializing a Principal.
Variants
BytesTooLong()
InvalidBase32()
TextTooShort()
TextTooLong()
CheckSequenceNotMatch()
AbnormalGrouped(Principal)
Trait Implementations
sourceimpl Clone for PrincipalError
impl Clone for PrincipalError
sourcefn clone(&self) -> PrincipalError
fn clone(&self) -> PrincipalError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for PrincipalError
impl Debug for PrincipalError
sourceimpl Display for PrincipalError
impl Display for PrincipalError
sourceimpl Error for PrincipalError
impl Error for PrincipalError
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourceimpl From<PrincipalError> for AgentError
impl From<PrincipalError> for AgentError
sourcefn from(source: PrincipalError) -> Self
fn from(source: PrincipalError) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<PrincipalError> for PrincipalError
impl PartialEq<PrincipalError> for PrincipalError
sourcefn eq(&self, other: &PrincipalError) -> bool
fn eq(&self, other: &PrincipalError) -> bool
impl Eq for PrincipalError
impl StructuralEq for PrincipalError
impl StructuralPartialEq for PrincipalError
Auto Trait Implementations
impl RefUnwindSafe for PrincipalError
impl Send for PrincipalError
impl Sync for PrincipalError
impl Unpin for PrincipalError
impl UnwindSafe for PrincipalError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.