pub enum Error {
Connect(Error),
Handshake(Error),
HandshakeGreetingMismatch([u8; 12]),
SetNonblocking(Error),
IOError(Error),
}
Expand description
The Error
Type. This is the main error type.
Variants§
Connect(Error)
Failure to connect to a rocket tracker. This can happen if the tracker is not running, the address isn’t correct or other network-related reasons.
Handshake(Error)
Failure to transmit or receive greetings with the tracker
HandshakeGreetingMismatch([u8; 12])
Handshake was performed but the the received greeting wasn’t correct
SetNonblocking(Error)
Error from TcpStream::set_nonblocking
IOError(Error)
Network IO error during operation
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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 Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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