pub enum NetworkError {
Show 15 variants
IdentityNotFound(String),
AuthenticationFailed(String),
ConnectionFailed(String),
NotConnected(String),
SendFailed(String),
ReceiveFailed(String),
RoutingFailed(String),
NoRoute(String),
DiscoveryFailed(String),
RegistrationFailed(String),
PeerNotFound(String),
FederationDenied(String),
InvalidState(String),
Internal(String),
Timeout(String),
}Expand description
Errors that can occur within the networking stack.
Covers all five layers: identity, transport, routing, discovery, and application.
Variants§
IdentityNotFound(String)
An agent identity could not be resolved.
AuthenticationFailed(String)
Credential verification failed.
ConnectionFailed(String)
A transport-level connection failure.
NotConnected(String)
A transport is not connected when an operation requires it.
SendFailed(String)
Sending a message failed at the transport level.
ReceiveFailed(String)
Receiving a message failed at the transport level.
RoutingFailed(String)
A message could not be routed to its destination.
NoRoute(String)
No route exists to the requested peer.
DiscoveryFailed(String)
Peer discovery failed.
RegistrationFailed(String)
Agent registration with a discovery service failed.
PeerNotFound(String)
A peer/node was not found in the peer table.
FederationDenied(String)
A federation request was denied by policy.
InvalidState(String)
The network manager is in an invalid state for the requested operation.
Internal(String)
An internal or unexpected error.
Timeout(String)
Operation timed out.
Trait Implementations§
Source§impl Clone for NetworkError
impl Clone for NetworkError
Source§fn clone(&self) -> NetworkError
fn clone(&self) -> NetworkError
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§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)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for NetworkError
impl RefUnwindSafe for NetworkError
impl Send for NetworkError
impl Sync for NetworkError
impl Unpin for NetworkError
impl UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.