pub enum DualStackConnIpAddr<A: IpAddress, LI, RI>where
A::Version: DualStackIpExt,{
ThisStack(ConnIpAddr<A, LI, RI>),
OtherStack(ConnIpAddr<<<A::Version as DualStackIpExt>::OtherVersion as Ip>::Addr, LI, RI>),
}
Expand description
The IP address and identifiers (ports) of a dual-stack connected socket.
Variants§
ThisStack(ConnIpAddr<A, LI, RI>)
OtherStack(ConnIpAddr<<<A::Version as DualStackIpExt>::OtherVersion as Ip>::Addr, LI, RI>)
Trait Implementations§
Source§impl<A: Clone + IpAddress, LI: Clone, RI: Clone> Clone for DualStackConnIpAddr<A, LI, RI>
impl<A: Clone + IpAddress, LI: Clone, RI: Clone> Clone for DualStackConnIpAddr<A, LI, RI>
Source§fn clone(&self) -> DualStackConnIpAddr<A, LI, RI>
fn clone(&self) -> DualStackConnIpAddr<A, LI, RI>
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<LI: Into<NonZeroU16>, RI> From<DualStackConnIpAddr<Ipv6Addr, LI, RI>> for ConnInfoAddr<Ipv6Addr, RI>
impl<LI: Into<NonZeroU16>, RI> From<DualStackConnIpAddr<Ipv6Addr, LI, RI>> for ConnInfoAddr<Ipv6Addr, RI>
Source§fn from(addr: DualStackConnIpAddr<Ipv6Addr, LI, RI>) -> Self
fn from(addr: DualStackConnIpAddr<Ipv6Addr, LI, RI>) -> Self
Converts to this type from the input type.
Source§impl<A: IpAddress, NewIp: DualStackIpExt, LI, RI> GenericOverIp<NewIp> for DualStackConnIpAddr<A, LI, RI>where
A::Version: DualStackIpExt,
impl<A: IpAddress, NewIp: DualStackIpExt, LI, RI> GenericOverIp<NewIp> for DualStackConnIpAddr<A, LI, RI>where
A::Version: DualStackIpExt,
Source§impl<A: PartialEq + IpAddress, LI: PartialEq, RI: PartialEq> PartialEq for DualStackConnIpAddr<A, LI, RI>
impl<A: PartialEq + IpAddress, LI: PartialEq, RI: PartialEq> PartialEq for DualStackConnIpAddr<A, LI, RI>
Source§fn eq(&self, other: &DualStackConnIpAddr<A, LI, RI>) -> bool
fn eq(&self, other: &DualStackConnIpAddr<A, LI, RI>) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl<A: Copy + IpAddress, LI: Copy, RI: Copy> Copy for DualStackConnIpAddr<A, LI, RI>
impl<A: Eq + IpAddress, LI: Eq, RI: Eq> Eq for DualStackConnIpAddr<A, LI, RI>
impl<A: IpAddress, LI, RI> StructuralPartialEq for DualStackConnIpAddr<A, LI, RI>where
A::Version: DualStackIpExt,
Auto Trait Implementations§
impl<A, LI, RI> Freeze for DualStackConnIpAddr<A, LI, RI>
impl<A, LI, RI> RefUnwindSafe for DualStackConnIpAddr<A, LI, RI>where
<A as IpAddress>::Version: Sized,
LI: RefUnwindSafe,
RI: RefUnwindSafe,
A: RefUnwindSafe,
<<<A as IpAddress>::Version as DualStackIpExt>::OtherVersion as Ip>::Addr: RefUnwindSafe,
impl<A, LI, RI> Send for DualStackConnIpAddr<A, LI, RI>
impl<A, LI, RI> Sync for DualStackConnIpAddr<A, LI, RI>
impl<A, LI, RI> Unpin for DualStackConnIpAddr<A, LI, RI>
impl<A, LI, RI> UnwindSafe for DualStackConnIpAddr<A, LI, RI>where
<A as IpAddress>::Version: Sized,
LI: UnwindSafe,
RI: UnwindSafe,
A: UnwindSafe,
<<<A as IpAddress>::Version as DualStackIpExt>::OtherVersion as Ip>::Addr: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)Source§impl<CC, BC, Meta> RecvFrameContext<Meta, BC> for CCwhere
Meta: ReceivableFrameMeta<CC, BC>,
impl<CC, BC, Meta> RecvFrameContext<Meta, BC> for CCwhere
Meta: ReceivableFrameMeta<CC, BC>,
Source§impl<CC, BC, Meta> SendFrameContext<BC, Meta> for CCwhere
Meta: SendableFrameMeta<CC, BC>,
impl<CC, BC, Meta> SendFrameContext<BC, Meta> for CCwhere
Meta: SendableFrameMeta<CC, BC>,
Source§fn send_frame<S>(
&mut self,
bindings_ctx: &mut BC,
metadata: Meta,
frame: S,
) -> Result<(), ErrorAndSerializer<SendFrameErrorReason, S>>where
S: Serializer,
<S as Serializer>::Buffer: BufferMut,
fn send_frame<S>(
&mut self,
bindings_ctx: &mut BC,
metadata: Meta,
frame: S,
) -> Result<(), ErrorAndSerializer<SendFrameErrorReason, S>>where
S: Serializer,
<S as Serializer>::Buffer: BufferMut,
Send a frame. Read more
Source§impl<Id, CC, BC> TimerHandler<BC, Id> for CCwhere
BC: TimerBindingsTypes,
Id: HandleableTimer<CC, BC>,
impl<Id, CC, BC> TimerHandler<BC, Id> for CCwhere
BC: TimerBindingsTypes,
Id: HandleableTimer<CC, BC>,
Source§fn handle_timer(
&mut self,
bindings_ctx: &mut BC,
dispatch: Id,
timer: <BC as TimerBindingsTypes>::UniqueTimerId,
)
fn handle_timer( &mut self, bindings_ctx: &mut BC, dispatch: Id, timer: <BC as TimerBindingsTypes>::UniqueTimerId, )
Handle a timer firing. Read more