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

Failed receiving from an mpsc::channel

Config file handling errors

Wrapper for a std::io::Error

ServiceDiscovery not enabled yet

ServiceDiscovery Errors

ServiceDiscovery not enabled yet

Nat Traversal errors

Common module errors

CoreMsg send error

Peer not found

Serialisation error

Requested connect to self

Listener is not initialised yet.

Trait Implementations

impl Debug for CrustError
[src]

[src]

Formats the value using the given formatter.

impl Display for CrustError

Formats the value using the given formatter. Read more

impl Error for CrustError

A short description of the error. Read more

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

impl From<RecvError> for CrustError

Performs the conversion.

impl From<Error> for CrustError

Performs the conversion.

impl From<Error> for CrustError

Performs the conversion.

impl From<ServiceDiscoveryError> for CrustError

Performs the conversion.

impl From<NatError> for CrustError

Performs the conversion.

impl From<CommonError> for CrustError

Performs the conversion.

impl From<SendError<CoreMessage>> for CrustError

Performs the conversion.

impl From<SerialisationError> for CrustError

Performs the conversion.