Expand description
Used to signal connection events and deliver received packets.
Variants§
Connect
Indicates a successful connection to a server.
Disconnect
Indicates that the server has disconnected. A disconnection event is only produced if either party explicitly terminates an active connection.
Receive(Box<[u8]>)
Signals a packet received from the server.
Error(ErrorType)
Indicates that a connection has been terminated due to an unrecoverable error.