pub enum RconError {
ConnectionFailed(Error),
AuthFailed,
Timeout(u64),
ConnectionLost(Error),
ProtocolError(String),
InvalidPacket(String),
Io(Error),
}Expand description
RCON client errors
Variants§
ConnectionFailed(Error)
Initial TCP connection failed
AuthFailed
Authentication failed (wrong password)
Timeout(u64)
Operation timed out
ConnectionLost(Error)
Connection lost during operation
ProtocolError(String)
Invalid server response
InvalidPacket(String)
Malformed packet structure
Io(Error)
Generic IO error
Trait Implementations§
Source§impl Error for RconError
impl Error for RconError
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 RconError
impl !RefUnwindSafe for RconError
impl Send for RconError
impl Sync for RconError
impl Unpin for RconError
impl !UnwindSafe for RconError
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