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

AlreadyClosed

The node has already been closed

OpenError(Error)

Failed to open a node socket

ConnectionError(Error)

Failed to establish a connection

SendError

Failed to send a message

ReadError

Failed to receive a message

NotConnected(N)

Failed to send a message because there is no connection to the destination

ConnectionAborted

Connection aborted in the initialization phase

CloseError(Error)

Failed to close a socket

Trait Implementations

impl<N: Debug> Debug for Error<N> where N: NodeId
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.