pub struct IpOptions<I: IpExt, D: WeakDeviceIdentifier, S: DatagramSocketSpec + ?Sized> { /* private fields */ }
Expand description
A datagram socket’s IP options.
Implementations§
Source§impl<I: IpExt, D: WeakDeviceIdentifier, S: DatagramSocketSpec> IpOptions<I, D, S>
impl<I: IpExt, D: WeakDeviceIdentifier, S: DatagramSocketSpec> IpOptions<I, D, S>
Sourcepub fn other_stack(&self) -> &S::OtherStackIpOptions<I, D>
pub fn other_stack(&self) -> &S::OtherStackIpOptions<I, D>
Returns the IP options for the other stack.
Sourcepub fn transparent(&self) -> bool
pub fn transparent(&self) -> bool
Returns the transparent option.
Trait Implementations§
Source§impl<I: IpExt, D: WeakDeviceIdentifier, S: DatagramSocketSpec> AsMut<IpOptions<I, D, S>> for DualStackConnState<I, D, S>
impl<I: IpExt, D: WeakDeviceIdentifier, S: DatagramSocketSpec> AsMut<IpOptions<I, D, S>> for DualStackConnState<I, D, S>
Source§impl<WireI: IpExt, SocketI: IpExt, D: WeakDeviceIdentifier, S: DatagramSocketSpec> AsMut<IpOptions<SocketI, D, S>> for ConnState<WireI, SocketI, D, S>
impl<WireI: IpExt, SocketI: IpExt, D: WeakDeviceIdentifier, S: DatagramSocketSpec> AsMut<IpOptions<SocketI, D, S>> for ConnState<WireI, SocketI, D, S>
Source§impl<I: IpExt, D: WeakDeviceIdentifier, S: DatagramSocketSpec> AsRef<IpOptions<I, D, S>> for BoundSocketState<I, D, S>
impl<I: IpExt, D: WeakDeviceIdentifier, S: DatagramSocketSpec> AsRef<IpOptions<I, D, S>> for BoundSocketState<I, D, S>
Source§impl<I: IpExt, D: WeakDeviceIdentifier, S: DatagramSocketSpec> AsRef<IpOptions<I, D, S>> for BoundSocketStateType<I, D, S>
impl<I: IpExt, D: WeakDeviceIdentifier, S: DatagramSocketSpec> AsRef<IpOptions<I, D, S>> for BoundSocketStateType<I, D, S>
Source§impl<I: IpExt, D: WeakDeviceIdentifier, S: DatagramSocketSpec> AsRef<IpOptions<I, D, S>> for DualStackConnState<I, D, S>
impl<I: IpExt, D: WeakDeviceIdentifier, S: DatagramSocketSpec> AsRef<IpOptions<I, D, S>> for DualStackConnState<I, D, S>
Source§impl<I: IpExt, D: WeakDeviceIdentifier, S: DatagramSocketSpec> AsRef<IpOptions<I, D, S>> for IpOptions<I, D, S>
impl<I: IpExt, D: WeakDeviceIdentifier, S: DatagramSocketSpec> AsRef<IpOptions<I, D, S>> for IpOptions<I, D, S>
Source§impl<I: IpExt, D: WeakDeviceIdentifier, S: DatagramSocketSpec> AsRef<IpOptions<I, D, S>> for SocketState<I, D, S>
impl<I: IpExt, D: WeakDeviceIdentifier, S: DatagramSocketSpec> AsRef<IpOptions<I, D, S>> for SocketState<I, D, S>
Source§impl<WireI: IpExt, SocketI: IpExt, D: WeakDeviceIdentifier, S: DatagramSocketSpec> AsRef<IpOptions<SocketI, D, S>> for ConnState<WireI, SocketI, D, S>
impl<WireI: IpExt, SocketI: IpExt, D: WeakDeviceIdentifier, S: DatagramSocketSpec> AsRef<IpOptions<SocketI, D, S>> for ConnState<WireI, SocketI, D, S>
Source§impl<I: IpExt, D: WeakDeviceIdentifier, S: DatagramSocketSpec + ?Sized> Clone for IpOptions<I, D, S>
impl<I: IpExt, D: WeakDeviceIdentifier, S: DatagramSocketSpec + ?Sized> Clone for IpOptions<I, D, S>
Source§impl<I: IpExt, D: WeakDeviceIdentifier, S: DatagramSocketSpec + ?Sized> Default for IpOptions<I, D, S>
impl<I: IpExt, D: WeakDeviceIdentifier, S: DatagramSocketSpec + ?Sized> Default for IpOptions<I, D, S>
Source§impl<I: IpExt, D: WeakDeviceIdentifier, S: DatagramSocketSpec + ?Sized, IpType> GenericOverIp<IpType> for IpOptions<I, D, S>
impl<I: IpExt, D: WeakDeviceIdentifier, S: DatagramSocketSpec + ?Sized, IpType> GenericOverIp<IpType> for IpOptions<I, D, S>
Auto Trait Implementations§
impl<I, D, S> Freeze for IpOptions<I, D, S>where
<I as DualStackIpExt>::OtherVersion: Sized,
<S as DatagramSocketSpec>::OtherStackIpOptions<I, D>: Freeze,
D: Freeze,
<I as BroadcastIpExt>::BroadcastMarker: Freeze,
impl<I, D, S> RefUnwindSafe for IpOptions<I, D, S>where
<I as DualStackIpExt>::OtherVersion: Sized,
<S as DatagramSocketSpec>::OtherStackIpOptions<I, D>: RefUnwindSafe,
D: RefUnwindSafe,
<I as BroadcastIpExt>::BroadcastMarker: RefUnwindSafe,
I: RefUnwindSafe,
<I as Ip>::Addr: RefUnwindSafe,
impl<I, D, S> Send for IpOptions<I, D, S>
impl<I, D, S> Sync for IpOptions<I, D, S>
impl<I, D, S> Unpin for IpOptions<I, D, S>where
<I as DualStackIpExt>::OtherVersion: Sized,
<S as DatagramSocketSpec>::OtherStackIpOptions<I, D>: Unpin,
D: Unpin,
<I as BroadcastIpExt>::BroadcastMarker: Unpin,
I: Unpin,
<I as Ip>::Addr: Unpin,
impl<I, D, S> UnwindSafe for IpOptions<I, D, S>where
<I as DualStackIpExt>::OtherVersion: Sized,
<S as DatagramSocketSpec>::OtherStackIpOptions<I, D>: UnwindSafe,
D: UnwindSafe,
<I as BroadcastIpExt>::BroadcastMarker: UnwindSafe,
I: UnwindSafe,
<I 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<O, BC> BuildableCoreContext<BC> for Owhere
O: Default,
impl<O, BC> BuildableCoreContext<BC> for Owhere
O: Default,
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