pub enum BasicUsernameError {
Empty,
TooLong,
InvalidByte,
AllocationFailed,
}Expand description
Basic username validation failure.
Variants§
Empty
Usernames must not be empty.
TooLong
Usernames exceed MAX_BASIC_USERNAME_BYTES.
InvalidByte
Usernames must be visible ASCII and must not contain a colon.
AllocationFailed
Adapter-owned secret storage could not be allocated.
Trait Implementations§
Source§impl Clone for BasicUsernameError
impl Clone for BasicUsernameError
Source§fn clone(&self) -> BasicUsernameError
fn clone(&self) -> BasicUsernameError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BasicUsernameError
Source§impl Debug for BasicUsernameError
impl Debug for BasicUsernameError
Source§impl Display for BasicUsernameError
impl Display for BasicUsernameError
impl Eq for BasicUsernameError
Source§impl Error for BasicUsernameError
impl Error for BasicUsernameError
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 BasicUsernameError
impl PartialEq for BasicUsernameError
impl StructuralPartialEq for BasicUsernameError
Auto Trait Implementations§
impl Freeze for BasicUsernameError
impl RefUnwindSafe for BasicUsernameError
impl Send for BasicUsernameError
impl Sync for BasicUsernameError
impl Unpin for BasicUsernameError
impl UnsafeUnpin for BasicUsernameError
impl UnwindSafe for BasicUsernameError
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