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 Debug for CrustError
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Display for CrustError
impl Display for CrustError
impl Error for CrustError
impl Error for CrustError
fn description(&self) -> &str
fn description(&self) -> &str
This method is soft-deprecated. Read more
fn cause(&self) -> Option<&Error>
fn cause(&self) -> Option<&Error>
The lower-level cause of this error, if any. Read more
impl From<RecvError> for CrustError
impl From<RecvError> for CrustError
fn from(e: RecvError) -> CrustError
fn from(e: RecvError) -> CrustError
Performs the conversion.
impl From<Error> for CrustError
impl From<Error> for CrustError
fn from(e: Error) -> CrustError
fn from(e: Error) -> CrustError
Performs the conversion.
impl From<Error> for CrustError
impl From<Error> for CrustError
fn from(e: Error) -> CrustError
fn from(e: Error) -> CrustError
Performs the conversion.
impl From<SendError<CoreMessage>> for CrustError
impl From<SendError<CoreMessage>> for CrustError
fn from(e: SendError<CoreMessage>) -> CrustError
fn from(e: SendError<CoreMessage>) -> CrustError
Performs the conversion.
impl From<SerialisationError> for CrustError
impl From<SerialisationError> for CrustError
fn from(e: SerialisationError) -> CrustError
fn from(e: SerialisationError) -> CrustError
Performs the conversion.
Auto Trait Implementations
impl Send for CrustError
impl Send for CrustError
impl !Sync for CrustError
impl !Sync for CrustError