Enum msgpacknet::Error
[−]
[src]
pub enum Error<N> where N: NodeId { AlreadyClosed, OpenError(Error), ConnectionError(Error), SendError, ReadError, NotConnected(N), ConnectionAborted, CloseError(Error), }
The error type used througout the crate
Variants
AlreadyClosedThe node has already been closed
OpenError(Error)Failed to open a node socket
ConnectionError(Error)Failed to establish a connection
SendErrorFailed to send a message
ReadErrorFailed to receive a message
NotConnected(N)Failed to send a message because there is no connection to the destination
ConnectionAbortedConnection aborted in the initialization phase
CloseError(Error)Failed to close a socket