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]

Formats the value using the given formatter. Read more

impl Display for CrustError

Formats the value using the given formatter. Read more

impl Error for CrustError

This method is soft-deprecated. 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<SendError<CoreMessage>> for CrustError

Performs the conversion.

impl From<SerialisationError> for CrustError

Performs the conversion.

Auto Trait Implementations

impl Send for CrustError

impl !Sync for CrustError