pub enum NetworkError {
OrganismNotFound(String),
OrganismOffline(String),
ConnectionFailed(String),
DiscoveryFailed(String),
NetworkTimeout,
InvalidAddress(String),
ProtocolNotSupported(String),
NetworkOverloaded,
}Expand description
Network-related errors
Variantsยง
OrganismNotFound(String)
OrganismOffline(String)
ConnectionFailed(String)
DiscoveryFailed(String)
NetworkTimeout
InvalidAddress(String)
ProtocolNotSupported(String)
NetworkOverloaded
Trait Implementationsยง
Sourceยงimpl Debug for NetworkError
impl Debug for NetworkError
Sourceยงimpl Display for NetworkError
impl Display for NetworkError
Sourceยงimpl Error for NetworkError
impl Error for NetworkError
1.30.0 ยท Sourceยงfn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 ยท Sourceยงfn description(&self) -> &str
fn description(&self) -> &str
๐Deprecated since 1.42.0: use the Display impl or to_string()
Sourceยงimpl From<NetworkError> for GenesisError
impl From<NetworkError> for GenesisError
Sourceยงfn from(source: NetworkError) -> Self
fn from(source: NetworkError) -> Self
Converts to this type from the input type.
Auto Trait Implementationsยง
impl Freeze for NetworkError
impl RefUnwindSafe for NetworkError
impl Send for NetworkError
impl Sync for NetworkError
impl Unpin for NetworkError
impl UnwindSafe for NetworkError
Blanket Implementationsยง
Sourceยงimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Sourceยงfn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more