pub enum DualStackListenerIpAddr<A: IpAddress, LI: Into<NonZeroU16>>where
A::Version: DualStackIpExt,{
ThisStack(ListenerIpAddr<A, LI>),
OtherStack(ListenerIpAddr<<<A::Version as DualStackIpExt>::OtherVersion as Ip>::Addr, LI>),
BothStacks(LI),
}
Expand description
The IP address and identifier (port) of a dual-stack listening socket.
Variants§
ThisStack(ListenerIpAddr<A, LI>)
The socket is bound to this stack.
OtherStack(ListenerIpAddr<<<A::Version as DualStackIpExt>::OtherVersion as Ip>::Addr, LI>)
The socket is bound to the other stack.
BothStacks(LI)
The socket is dual-stack enabled and bound to the IPv6 any address.
Trait Implementations§
Source§impl<A: Clone + IpAddress, LI: Clone + Into<NonZeroU16>> Clone for DualStackListenerIpAddr<A, LI>
impl<A: Clone + IpAddress, LI: Clone + Into<NonZeroU16>> Clone for DualStackListenerIpAddr<A, LI>
Source§fn clone(&self) -> DualStackListenerIpAddr<A, LI>
fn clone(&self) -> DualStackListenerIpAddr<A, LI>
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: Debug + IpAddress, LI: Debug + Into<NonZeroU16>> Debug for DualStackListenerIpAddr<A, LI>
impl<A: Debug + IpAddress, LI: Debug + Into<NonZeroU16>> Debug for DualStackListenerIpAddr<A, LI>
Source§impl<A: IpAddress, NewIp: DualStackIpExt, LI: Into<NonZeroU16>> GenericOverIp<NewIp> for DualStackListenerIpAddr<A, LI>where
A::Version: DualStackIpExt,
impl<A: IpAddress, NewIp: DualStackIpExt, LI: Into<NonZeroU16>> GenericOverIp<NewIp> for DualStackListenerIpAddr<A, LI>where
A::Version: DualStackIpExt,
Source§impl<A: Hash + IpAddress, LI: Hash + Into<NonZeroU16>> Hash for DualStackListenerIpAddr<A, LI>
impl<A: Hash + IpAddress, LI: Hash + Into<NonZeroU16>> Hash for DualStackListenerIpAddr<A, LI>
Source§impl<LI: Into<NonZeroU16>> Into<(Option<SpecifiedAddr<Ipv6Addr>>, NonZero<u16>)> for DualStackListenerIpAddr<Ipv6Addr, LI>
impl<LI: Into<NonZeroU16>> Into<(Option<SpecifiedAddr<Ipv6Addr>>, NonZero<u16>)> for DualStackListenerIpAddr<Ipv6Addr, LI>
Source§fn into(self) -> (Option<SpecifiedAddr<Ipv6Addr>>, NonZeroU16)
fn into(self) -> (Option<SpecifiedAddr<Ipv6Addr>>, NonZeroU16)
Converts this type into the (usually inferred) input type.
Source§impl<A: PartialEq + IpAddress, LI: PartialEq + Into<NonZeroU16>> PartialEq for DualStackListenerIpAddr<A, LI>
impl<A: PartialEq + IpAddress, LI: PartialEq + Into<NonZeroU16>> PartialEq for DualStackListenerIpAddr<A, LI>
Source§fn eq(&self, other: &DualStackListenerIpAddr<A, LI>) -> bool
fn eq(&self, other: &DualStackListenerIpAddr<A, LI>) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl<A: Copy + IpAddress, LI: Copy + Into<NonZeroU16>> Copy for DualStackListenerIpAddr<A, LI>
impl<A: Eq + IpAddress, LI: Eq + Into<NonZeroU16>> Eq for DualStackListenerIpAddr<A, LI>
impl<A: IpAddress, LI: Into<NonZeroU16>> StructuralPartialEq for DualStackListenerIpAddr<A, LI>where
A::Version: DualStackIpExt,
Auto Trait Implementations§
impl<A, LI> Freeze for DualStackListenerIpAddr<A, LI>
impl<A, LI> RefUnwindSafe for DualStackListenerIpAddr<A, LI>where
<A as IpAddress>::Version: Sized,
LI: RefUnwindSafe,
A: RefUnwindSafe,
<<<A as IpAddress>::Version as DualStackIpExt>::OtherVersion as Ip>::Addr: RefUnwindSafe,
impl<A, LI> Send for DualStackListenerIpAddr<A, LI>
impl<A, LI> Sync for DualStackListenerIpAddr<A, LI>
impl<A, LI> Unpin for DualStackListenerIpAddr<A, LI>
impl<A, LI> UnwindSafe for DualStackListenerIpAddr<A, LI>where
<A as IpAddress>::Version: Sized,
LI: 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