Enum routing::InterfaceError [] [src]

pub enum InterfaceError {
    NotConnected,
    InvalidState,
    ChannelRxError(RecvError),
    EventSenderError(EventSenderError<MaidSafeEventCategory, Action>),
}

The type of errors that can occur if routing is unable to handle a send request.

Variants

NotConnected

We are not connected to the network.

InvalidState

We are not in a state to handle the action.

ChannelRxError(RecvError)

Error while trying to receive a message from a channel

EventSenderError(EventSenderError<MaidSafeEventCategory, Action>)

Error while trying to transmit an event via a channel

Trait Implementations

impl Debug for InterfaceError
[src]

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

Formats the value using the given formatter.

impl From<EventSenderError<MaidSafeEventCategory, Action>> for InterfaceError
[src]

fn from(error: EventSenderError<MaidSafeEventCategory, Action>) -> InterfaceError

Performs the conversion.

impl From<RecvError> for InterfaceError
[src]

fn from(error: RecvError) -> InterfaceError

Performs the conversion.