pub enum LogInError {
IO(Error),
PasswordTooLong,
AlreadyLoggedIn,
BadPassword,
}Expand description
A failed attempt to log in. See RconClient::log_in for details.
Variants§
IO(Error)
An I/O error occured.
PasswordTooLong
The password was too long.
AlreadyLoggedIn
The client is already logged in.
BadPassword
The password was incorrect.
Trait Implementations§
Source§impl Debug for LogInError
impl Debug for LogInError
Source§impl Display for LogInError
impl Display for LogInError
Source§impl Error for LogInError
impl Error for LogInError
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()
Auto Trait Implementations§
impl Freeze for LogInError
impl !RefUnwindSafe for LogInError
impl Send for LogInError
impl Sync for LogInError
impl Unpin for LogInError
impl !UnwindSafe for LogInError
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