[]Enum crust::CrustError

pub enum CrustError {
    ChannelRecv(RecvError),
    ConfigFileHandler(Error),
    Io(Error),
    ServiceDiscNotEnabled,
    ServiceDisc(ServiceDiscoveryError),
    InsufficientConnectionInfo,
    Nat(NatError),
    Common(CommonError),
    CoreMsgTx(SendError<CoreMessage>),
    PeerNotFound,
    Serialisation(SerialisationError),
    RequestedConnectToSelf,
    ListenerNotIntialised,
}

Crust's universal error type.

Variants

ChannelRecv(RecvError)

Failed receiving from an mpsc::channel

ConfigFileHandler(Error)

Config file handling errors

Io(Error)

Wrapper for a std::io::Error

ServiceDiscNotEnabled

ServiceDiscovery not enabled yet

ServiceDisc(ServiceDiscoveryError)

ServiceDiscovery Errors

InsufficientConnectionInfo

ServiceDiscovery not enabled yet

Nat(NatError)

Nat Traversal errors

Common(CommonError)

Common module errors

CoreMsgTx(SendError<CoreMessage>)

CoreMsg send error

PeerNotFound

Peer not found

Serialisation(SerialisationError)

Serialisation error

RequestedConnectToSelf

Requested connect to self

ListenerNotIntialised

Listener is not initialised yet.

Trait Implementations

impl From<RecvError> for CrustError

impl From<Error> for CrustError

impl From<Error> for CrustError

impl From<SendError<CoreMessage>> for CrustError

impl From<SerialisationError> for CrustError

impl Debug for CrustError[src]

impl Display for CrustError

impl Error for CrustError

fn source(&self) -> Option<&(dyn Error + 'static)>1.30.0[src]

The lower-level source of this error, if any. Read more

Auto Trait Implementations

impl Send for CrustError

impl !Sync for CrustError

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Typeable for T where
    T: Any

fn get_type(&self) -> TypeId

Get the TypeId of this object.

impl<T> DebugAny for T where
    T: Any + Debug

impl<T> UnsafeAny for T where
    T: Any