Enum netstack3_core::tcp::SocketInfo
source · pub enum SocketInfo<A: IpAddress, D> {
Unbound(UnboundInfo<D>),
Bound(BoundInfo<A, D>),
Connection(ConnectionInfo<A, D>),
}
Expand description
Information about a socket.
Variants§
Unbound(UnboundInfo<D>)
Unbound socket info.
Bound(BoundInfo<A, D>)
Bound or listener socket info.
Connection(ConnectionInfo<A, D>)
Connection socket info.
Trait Implementations§
source§impl<A: Clone + IpAddress, D: Clone> Clone for SocketInfo<A, D>
impl<A: Clone + IpAddress, D: Clone> Clone for SocketInfo<A, D>
source§fn clone(&self) -> SocketInfo<A, D>
fn clone(&self) -> SocketInfo<A, D>
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<A: IpAddress, D, IpType: Ip> GenericOverIp<IpType> for SocketInfo<A, D>
impl<A: IpAddress, D, IpType: Ip> GenericOverIp<IpType> for SocketInfo<A, D>
§type Type = SocketInfo<<IpType as Ip>::Addr, D>
type Type = SocketInfo<<IpType as Ip>::Addr, D>
The type of
Self
when its IP-generic parameter is replaced with the
type NewIp
.source§impl<A: PartialEq + IpAddress, D: PartialEq> PartialEq for SocketInfo<A, D>
impl<A: PartialEq + IpAddress, D: PartialEq> PartialEq for SocketInfo<A, D>
source§fn eq(&self, other: &SocketInfo<A, D>) -> bool
fn eq(&self, other: &SocketInfo<A, D>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<A: Eq + IpAddress, D: Eq> Eq for SocketInfo<A, D>
impl<A: IpAddress, D> StructuralPartialEq for SocketInfo<A, D>
Auto Trait Implementations§
impl<A, D> Freeze for SocketInfo<A, D>where
A: Sealed + GenericOverIp<Ipv6, Type = Ipv6Addr, Type = Ipv4Addr, Type = A> + GenericOverIp<Ipv4> + GenericOverIp<<A as IpAddress>::Version> + ScopeableAddress + LinkLocalAddress + Send + Sync + Default + Debug + Display + Copy + Clone + Hash + Ord + PartialOrd + PartialEq + Eq + 'static + Freeze,
D: Freeze,
impl<A, D> RefUnwindSafe for SocketInfo<A, D>where
A: Sealed + GenericOverIp<Ipv6, Type = Ipv6Addr, Type = Ipv4Addr, Type = A> + GenericOverIp<Ipv4> + GenericOverIp<<A as IpAddress>::Version> + ScopeableAddress + LinkLocalAddress + Send + Sync + Default + Debug + Display + Copy + Clone + Hash + Ord + PartialOrd + PartialEq + Eq + 'static + RefUnwindSafe,
D: RefUnwindSafe,
impl<A, D> Send for SocketInfo<A, D>where
A: Sealed + GenericOverIp<Ipv6, Type = Ipv6Addr, Type = Ipv4Addr, Type = A> + GenericOverIp<Ipv4> + GenericOverIp<<A as IpAddress>::Version> + ScopeableAddress + LinkLocalAddress + Send + Sync + Default + Debug + Display + Copy + Clone + Hash + Ord + PartialOrd + PartialEq + Eq + 'static,
D: Send,
impl<A, D> Sync for SocketInfo<A, D>where
A: Sealed + GenericOverIp<Ipv6, Type = Ipv6Addr, Type = Ipv4Addr, Type = A> + GenericOverIp<Ipv4> + GenericOverIp<<A as IpAddress>::Version> + ScopeableAddress + LinkLocalAddress + Send + Sync + Default + Debug + Display + Copy + Clone + Hash + Ord + PartialOrd + PartialEq + Eq + 'static,
D: Sync,
impl<A, D> Unpin for SocketInfo<A, D>where
A: Sealed + GenericOverIp<Ipv6, Type = Ipv6Addr, Type = Ipv4Addr, Type = A> + GenericOverIp<Ipv4> + GenericOverIp<<A as IpAddress>::Version> + ScopeableAddress + LinkLocalAddress + Send + Sync + Default + Debug + Display + Copy + Clone + Hash + Ord + PartialOrd + PartialEq + Eq + 'static + Unpin,
D: Unpin,
impl<A, D> UnwindSafe for SocketInfo<A, D>where
A: Sealed + GenericOverIp<Ipv6, Type = Ipv6Addr, Type = Ipv4Addr, Type = A> + GenericOverIp<Ipv4> + GenericOverIp<<A as IpAddress>::Version> + ScopeableAddress + LinkLocalAddress + Send + Sync + Default + Debug + Display + Copy + Clone + Hash + Ord + PartialOrd + PartialEq + Eq + 'static + UnwindSafe,
D: UnwindSafe,
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.