pub enum ConnectionHandlerError {
ThreadMovement(String),
PacketSent(String),
Shutdown(String),
StartSequence(String),
PacketReading(Error),
ReponseError,
ChannelError,
KickingPlayer,
CloseConnection,
}Expand description
Error enum of the different errors that can occur
Variants§
ThreadMovement(String)
This error occurs, if an object could not be moved between two threads
PacketSent(String)
This error occurs, if the server was not able to send an packet to the player
Shutdown(String)
This error is and error used when the server closes the connection
StartSequence(String)
This error occurs, if the start sequence is not being used
PacketReading(Error)
This error occurs, if an error occurs while reading a packet
ReponseError
This error occurs, if a response is not how it es expected
ChannelError
This error occurs, if a channel produces an error
KickingPlayer
This error is being used, if the server kicks a player
CloseConnection
This error is being used, if the thread wants to close the TcpStream beacause of
inactivity
Trait Implementations§
source§impl Debug for ConnectionHandlerError
impl Debug for ConnectionHandlerError
Auto Trait Implementations§
impl Freeze for ConnectionHandlerError
impl RefUnwindSafe for ConnectionHandlerError
impl Send for ConnectionHandlerError
impl Sync for ConnectionHandlerError
impl Unpin for ConnectionHandlerError
impl UnwindSafe for ConnectionHandlerError
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