Enum netstack3_core::ip::IpSockSendError
source · pub enum IpSockSendError {
Mtu,
Unroutable(ResolveRouteError),
}
Expand description
An error in sending a packet on an IP socket.
Variants§
Mtu
An MTU was exceeded.
This could be caused by an MTU at any layer of the stack, including both device MTUs and packet format body size limits.
Unroutable(ResolveRouteError)
The socket is currently unroutable.
Trait Implementations§
source§impl Clone for IpSockSendError
impl Clone for IpSockSendError
source§fn clone(&self) -> IpSockSendError
fn clone(&self) -> IpSockSendError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for IpSockSendError
impl Debug for IpSockSendError
source§impl Display for IpSockSendError
impl Display for IpSockSendError
source§impl Error for IpSockSendError
impl Error for IpSockSendError
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<IpSockSendError> for IpSockCreateAndSendError
impl From<IpSockSendError> for IpSockCreateAndSendError
source§fn from(source: IpSockSendError) -> Self
fn from(source: IpSockSendError) -> Self
Converts to this type from the input type.
source§impl From<ResolveRouteError> for IpSockSendError
impl From<ResolveRouteError> for IpSockSendError
source§fn from(source: ResolveRouteError) -> Self
fn from(source: ResolveRouteError) -> Self
Converts to this type from the input type.
source§impl From<SerializeError<Infallible>> for IpSockSendError
impl From<SerializeError<Infallible>> for IpSockSendError
source§fn from(err: SerializeError<Infallible>) -> IpSockSendError
fn from(err: SerializeError<Infallible>) -> IpSockSendError
Converts to this type from the input type.
source§impl PartialEq for IpSockSendError
impl PartialEq for IpSockSendError
source§fn eq(&self, other: &IpSockSendError) -> bool
fn eq(&self, other: &IpSockSendError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for IpSockSendError
impl Eq for IpSockSendError
impl StructuralPartialEq for IpSockSendError
Auto Trait Implementations§
impl Freeze for IpSockSendError
impl RefUnwindSafe for IpSockSendError
impl Send for IpSockSendError
impl Sync for IpSockSendError
impl Unpin for IpSockSendError
impl UnwindSafe for IpSockSendError
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<Id, CC, BC> TimerHandler<BC, Id> for CCwhere
Id: HandleableTimer<CC, BC>,
impl<Id, CC, BC> TimerHandler<BC, Id> for CCwhere
Id: HandleableTimer<CC, BC>,
source§fn handle_timer(&mut self, bindings_ctx: &mut BC, id: Id)
fn handle_timer(&mut self, bindings_ctx: &mut BC, id: Id)
Handle a timer firing.