Enum netstack3_core::error::NetstackError
source · pub enum NetstackError {
Parse(ParseError),
Exists,
NotFound,
SendUdp(SendToError),
Connect(SocketError),
NoRoute,
Mtu,
}
Expand description
Top-level error type the netstack.
Variants§
Parse(ParseError)
Errors related to packet parsing.
Exists
Error when item already exists.
NotFound
Error when item is not found.
SendUdp(SendToError)
Errors related to sending UDP frames/packets.
Connect(SocketError)
Errors related to connections.
NoRoute
Error when there is no route to an address.
Mtu
Error when a maximum transmission unit (MTU) is exceeded.
Trait Implementations§
source§impl Debug for NetstackError
impl Debug for NetstackError
source§impl Display for NetstackError
impl Display for NetstackError
source§impl Error for NetstackError
impl Error for NetstackError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<ExistsError> for NetstackError
impl From<ExistsError> for NetstackError
source§fn from(_: ExistsError) -> NetstackError
fn from(_: ExistsError) -> NetstackError
Converts to this type from the input type.
source§impl From<NoRouteError> for NetstackError
impl From<NoRouteError> for NetstackError
source§fn from(_: NoRouteError) -> NetstackError
fn from(_: NoRouteError) -> NetstackError
Converts to this type from the input type.
source§impl From<NotFoundError> for NetstackError
impl From<NotFoundError> for NetstackError
source§fn from(_: NotFoundError) -> NetstackError
fn from(_: NotFoundError) -> NetstackError
Converts to this type from the input type.
source§impl PartialEq<NetstackError> for NetstackError
impl PartialEq<NetstackError> for NetstackError
source§fn eq(&self, other: &NetstackError) -> bool
fn eq(&self, other: &NetstackError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for NetstackError
Auto Trait Implementations§
impl RefUnwindSafe for NetstackError
impl Send for NetstackError
impl Sync for NetstackError
impl Unpin for NetstackError
impl UnwindSafe for NetstackError
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