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 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for PrincipalError
impl Debug for PrincipalError
sourceimpl<'de> Deserialize<'de> for PrincipalError
impl<'de> Deserialize<'de> for PrincipalError
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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 PartialEq<PrincipalError> for PrincipalError
impl PartialEq<PrincipalError> for PrincipalError
sourcefn eq(&self, other: &PrincipalError) -> bool
fn eq(&self, other: &PrincipalError) -> bool
sourceimpl Serialize for PrincipalError
impl Serialize for PrincipalError
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