Enum msgpacknet::Error [] [src]

pub enum Error<N> where N: NodeId {
    AlreadyClosed,
    OpenError,
    ConnectionError,
    SendError,
    ReadError,
    NotConnected(N),
    ConnectionAborted,
    CloseError,
}

The error type used througout the crate

Variants

AlreadyClosed

The node has already been closed

OpenError

Failed to open a node socket

ConnectionError

Failed to establish a connection

SendError

Failed to send a message

ReadError

Failed to receive a message

NotConnected

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

ConnectionAborted

Connection aborted in the initialization phase

CloseError

Failed to close a socket

Trait Implementations

Derived Implementations

impl<N: PartialOrd> PartialOrd for Error<N> where N: NodeId

fn partial_cmp(&self, __arg_0: &Error<N>) -> Option<Ordering>

fn lt(&self, __arg_0: &Error<N>) -> bool

fn le(&self, __arg_0: &Error<N>) -> bool

fn gt(&self, __arg_0: &Error<N>) -> bool

fn ge(&self, __arg_0: &Error<N>) -> bool

impl<N: Eq> Eq for Error<N> where N: NodeId

impl<N: Ord> Ord for Error<N> where N: NodeId

fn cmp(&self, __arg_0: &Error<N>) -> Ordering

impl<N: Hash> Hash for Error<N> where N: NodeId

fn hash<__H: Hasher>(&self, __arg_0: &mut __H)

fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher

impl<N: PartialEq> PartialEq for Error<N> where N: NodeId

fn eq(&self, __arg_0: &Error<N>) -> bool

fn ne(&self, __arg_0: &Error<N>) -> bool

impl<N: Debug> Debug for Error<N> where N: NodeId

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