pub enum DualStackRemoteIp<I: DualStackIpExt, D> {
ThisStack(ZonedAddr<SocketIpAddr<I::Addr>, D>),
OtherStack(ZonedAddr<SocketIpAddr<<I::OtherVersion as Ip>::Addr>, D>),
}
Expand description
A remote IP address that’s either in the current stack or the other stack.
Variants§
ThisStack(ZonedAddr<SocketIpAddr<I::Addr>, D>)
OtherStack(ZonedAddr<SocketIpAddr<<I::OtherVersion as Ip>::Addr>, D>)
Implementations§
Source§impl<I: SocketIpExt + DualStackIpExt<OtherVersion: SocketIpExt>, D> DualStackRemoteIp<I, D>
impl<I: SocketIpExt + DualStackIpExt<OtherVersion: SocketIpExt>, D> DualStackRemoteIp<I, D>
Sourcepub fn new(remote_ip: Option<ZonedAddr<SpecifiedAddr<I::Addr>, D>>) -> Self
pub fn new(remote_ip: Option<ZonedAddr<SpecifiedAddr<I::Addr>, D>>) -> Self
Returns the DualStackRemoteIp
for the given `remote_ip``.
An IPv4-mapped-IPv6 address will be unmapped to the inner IPv4 address,
and an unspecified address will be populated with
[specify_unspecified_remote
].
Auto Trait Implementations§
impl<I, D> Freeze for DualStackRemoteIp<I, D>where
D: Freeze,
<I as Ip>::Addr: Freeze,
<<I as DualStackIpExt>::OtherVersion as Ip>::Addr: Freeze,
impl<I, D> RefUnwindSafe for DualStackRemoteIp<I, D>where
D: RefUnwindSafe,
<I as Ip>::Addr: RefUnwindSafe,
<<I as DualStackIpExt>::OtherVersion as Ip>::Addr: RefUnwindSafe,
impl<I, D> Send for DualStackRemoteIp<I, D>where
D: Send,
impl<I, D> Sync for DualStackRemoteIp<I, D>where
D: Sync,
impl<I, D> Unpin for DualStackRemoteIp<I, D>
impl<I, D> UnwindSafe for DualStackRemoteIp<I, D>where
D: UnwindSafe,
<I as Ip>::Addr: UnwindSafe,
<<I 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<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