pub enum NetworkError {
InvalidNpdu(String),
RoutingError(String),
NetworkUnreachable(u16),
HopCountExceeded,
InvalidAddress,
UnsupportedNetworkMessageType(u8),
}Expand description
Errors that can occur in network operations
Variants§
InvalidNpdu(String)
Invalid NPDU format
RoutingError(String)
Routing error
NetworkUnreachable(u16)
Network unreachable
HopCountExceeded
Hop count exceeded
InvalidAddress
Invalid network address
UnsupportedNetworkMessageType(u8)
Unsupported network message type
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
Available on crate feature std only.
impl Error for NetworkError
Available on crate feature
std only.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()
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
Mutably borrows from an owned value. Read more