Enum netstack3_core::tcp::ConnectionError
source · pub enum ConnectionError {
ConnectionReset,
NetworkUnreachable,
HostUnreachable,
ProtocolUnreachable,
PortUnreachable,
DestinationHostDown,
SourceRouteFailed,
SourceHostIsolated,
TimedOut,
}
Expand description
Errors surfaced to the user.
Variants§
ConnectionReset
The connection was reset because of a RST segment.
NetworkUnreachable
The connection was closed because the network is unreachable.
HostUnreachable
The connection was closed because the host is unreachable.
ProtocolUnreachable
The connection was closed because the protocol is unreachable.
PortUnreachable
The connection was closed because the port is unreachable.
DestinationHostDown
The connection was closed because the host is down.
SourceRouteFailed
The connection was closed because the source route failed.
SourceHostIsolated
The connection was closed because the source host is isolated.
TimedOut
The connection was closed because of a time out.
Trait Implementations§
source§impl Clone for ConnectionError
impl Clone for ConnectionError
source§fn clone(&self) -> ConnectionError
fn clone(&self) -> ConnectionError
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 ConnectionError
impl Debug for ConnectionError
source§impl PartialEq for ConnectionError
impl PartialEq for ConnectionError
source§fn eq(&self, other: &ConnectionError) -> bool
fn eq(&self, other: &ConnectionError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ConnectionError
impl Eq for ConnectionError
impl StructuralPartialEq for ConnectionError
Auto Trait Implementations§
impl Freeze for ConnectionError
impl RefUnwindSafe for ConnectionError
impl Send for ConnectionError
impl Sync for ConnectionError
impl Unpin for ConnectionError
impl UnwindSafe for ConnectionError
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.