pub enum IdentityError {
UsernameTooLong {
len: usize,
},
UsernameEmpty,
InvalidCharacter {
ch: char,
},
InvalidDotPlacement {
reason: &'static str,
},
InvalidResponse {
msg: String,
},
}Expand description
Errors produced by the identity encoding layer.
Variants§
UsernameTooLong
The normalised username exceeds the 32-byte on-chain limit.
UsernameEmpty
An empty string was supplied.
InvalidCharacter
A character that is not [a-z0-9.] was found after ASCII lowercasing.
InvalidDotPlacement
The dot placement is invalid (leading, trailing, or consecutive dots).
InvalidResponse
The storage response could not be decoded.
Trait Implementations§
Source§impl Debug for IdentityError
impl Debug for IdentityError
Source§impl Display for IdentityError
impl Display for IdentityError
Source§impl Error for IdentityError
impl Error for IdentityError
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()
Source§impl PartialEq for IdentityError
impl PartialEq for IdentityError
impl StructuralPartialEq for IdentityError
Auto Trait Implementations§
impl Freeze for IdentityError
impl RefUnwindSafe for IdentityError
impl Send for IdentityError
impl Sync for IdentityError
impl Unpin for IdentityError
impl UnsafeUnpin for IdentityError
impl UnwindSafe for IdentityError
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