Enum crust::CrustError []

pub enum CrustError {
    ChannelRecv(RecvError),
    ConfigFileHandler(Error),
    Io(Error),
    ServiceDiscNotEnabled,
    ServiceDisc(ServiceDiscoveryError),
    InsufficientConnectionInfo,
    Nat(NatError),
    MioTimer(TimerError),
    Common(CommonError),
    MioNotify(NotifyError<CoreMessage>),
    PeerNotFound(PeerId),
    Serialisation(SerialisationError),
}

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

Mio Timer errors

Common module errors

Mio notify errors

Peer not found

Serialisation error

Trait Implementations

impl Debug for CrustError
[src]

Formats the value using the given formatter.

impl Display for CrustError

Formats the value using the given formatter.

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<TimerError> for CrustError

Performs the conversion.

impl From<CommonError> for CrustError

Performs the conversion.

impl From<NotifyError<CoreMessage>> for CrustError

Performs the conversion.

impl From<SerialisationError> for CrustError

Performs the conversion.