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
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
MioTimer(TimerError)
Mio Timer errors
Common(CommonError)
Common module errors
MioNotify(NotifyError<CoreMessage>)
Mio notify errors
PeerNotFound(PeerId)
Peer not found
Serialisation(SerialisationError)
Serialisation error
Trait Implementations
impl Debug for CrustError
[src]
impl Display for CrustError
impl Error for CrustError
fn description(&self) -> &str
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
The lower-level cause of this error, if any. Read more
impl From<RecvError> for CrustError
fn from(err: RecvError) -> CrustError
Performs the conversion.
impl From<Error> for CrustError
fn from(err: Error) -> CrustError
Performs the conversion.
impl From<Error> for CrustError
fn from(err: Error) -> CrustError
Performs the conversion.
impl From<ServiceDiscoveryError> for CrustError
fn from(err: ServiceDiscoveryError) -> CrustError
Performs the conversion.
impl From<NatError> for CrustError
fn from(err: NatError) -> CrustError
Performs the conversion.
impl From<TimerError> for CrustError
fn from(err: TimerError) -> CrustError
Performs the conversion.
impl From<CommonError> for CrustError
fn from(err: CommonError) -> CrustError
Performs the conversion.
impl From<NotifyError<CoreMessage>> for CrustError
fn from(err: NotifyError<CoreMessage>) -> CrustError
Performs the conversion.
impl From<SerialisationError> for CrustError
fn from(err: SerialisationError) -> CrustError
Performs the conversion.