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 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(e: RecvError) -> CrustError
Performs the conversion.
impl From<Error> for CrustError
fn from(e: Error) -> CrustError
Performs the conversion.
impl From<Error> for CrustError
fn from(e: Error) -> CrustError
Performs the conversion.
impl From<ServiceDiscoveryError> for CrustError
fn from(e: ServiceDiscoveryError) -> CrustError
Performs the conversion.
impl From<NatError> for CrustError
fn from(e: NatError) -> CrustError
Performs the conversion.
impl From<CommonError> for CrustError
fn from(e: CommonError) -> CrustError
Performs the conversion.
impl From<SendError<CoreMessage>> for CrustError
fn from(e: SendError<CoreMessage>) -> CrustError
Performs the conversion.
impl From<SerialisationError> for CrustError
fn from(e: SerialisationError) -> CrustError
Performs the conversion.