pub enum SetUsernameError {
TooLong(TooLong),
NoHost(NoHost),
}Expand description
The errors that can happen when setting a username.
Variants§
Trait Implementations§
Source§impl Debug for SetUsernameError
impl Debug for SetUsernameError
Source§impl Display for SetUsernameError
impl Display for SetUsernameError
Source§impl Error for SetUsernameError
impl Error for SetUsernameError
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 From<!> for SetUsernameError
impl From<!> for SetUsernameError
Source§fn from(value: Infallible) -> Self
fn from(value: Infallible) -> Self
Converts to this type from the input type.
Source§impl From<NoHost> for SetUsernameError
impl From<NoHost> for SetUsernameError
Auto Trait Implementations§
impl Freeze for SetUsernameError
impl RefUnwindSafe for SetUsernameError
impl Send for SetUsernameError
impl Sync for SetUsernameError
impl Unpin for SetUsernameError
impl UnsafeUnpin for SetUsernameError
impl UnwindSafe for SetUsernameError
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