Enum netstack3_core::udp::SendError
source · pub enum SendError {
NotWriteable,
IpSock(IpSockSendError),
RemotePortUnset,
}
Expand description
Error when sending a packet on a socket.
Variants§
NotWriteable
The socket is not writeable.
IpSock(IpSockSendError)
The packet couldn’t be sent.
RemotePortUnset
Disallow sending packets with a remote port of 0. See
UdpRemotePort::Unset
for the rationale.
Trait Implementations§
source§impl<IpType: Ip> GenericOverIp<IpType> for SendError
impl<IpType: Ip> GenericOverIp<IpType> for SendError
source§impl PartialEq for SendError
impl PartialEq for SendError
impl Copy for SendError
impl Eq for SendError
impl StructuralPartialEq for SendError
Auto Trait Implementations§
impl Freeze for SendError
impl RefUnwindSafe for SendError
impl Send for SendError
impl Sync for SendError
impl Unpin for SendError
impl UnwindSafe for SendError
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.