pub type IcmpSocketState<I, D, BT> = SocketState<I, D, Icmp<BT>>;
Expand description
The state of an ICMP socket.
Aliased Type§
enum IcmpSocketState<I, D, BT> {
Unbound(UnboundSocketState<I, D, Icmp<BT>>),
Bound(BoundSocketState<I, D, Icmp<BT>>),
}
Variants§
Unbound(UnboundSocketState<I, D, Icmp<BT>>)
Bound(BoundSocketState<I, D, Icmp<BT>>)
Implementations
Source§impl<I, D, S> SocketState<I, D, S>
impl<I, D, S> SocketState<I, D, S>
Sourcepub fn record_common_info<N>(
&self,
inspector: &mut N,
socket_id: &<S as DatagramSocketSpec>::SocketId<I, D>,
)where
N: Inspector + InspectorDeviceExt<D>,
pub fn record_common_info<N>(
&self,
inspector: &mut N,
socket_id: &<S as DatagramSocketSpec>::SocketId<I, D>,
)where
N: Inspector + InspectorDeviceExt<D>,
Record inspect information generic to each datagram protocol.
Sourcepub fn get_options_device<'a, BC, CC>(
&'a self,
core_ctx: &mut CC,
) -> (&'a IpOptions<I, <CC as DeviceIdContext<AnyDevice>>::WeakDeviceId, S>, &'a Option<<CC as DeviceIdContext<AnyDevice>>::WeakDeviceId>)where
BC: DatagramBindingsTypes,
CC: DatagramBoundStateContext<I, BC, S, WeakDeviceId = D>,
pub fn get_options_device<'a, BC, CC>(
&'a self,
core_ctx: &mut CC,
) -> (&'a IpOptions<I, <CC as DeviceIdContext<AnyDevice>>::WeakDeviceId, S>, &'a Option<<CC as DeviceIdContext<AnyDevice>>::WeakDeviceId>)where
BC: DatagramBindingsTypes,
CC: DatagramBoundStateContext<I, BC, S, WeakDeviceId = D>,
Gets the IpOptions
and bound device for the socket state.
Trait Implementations
Source§impl<I, D, S> AsRef<IpOptions<I, D, S>> for SocketState<I, D, S>
impl<I, D, S> AsRef<IpOptions<I, D, S>> for SocketState<I, D, S>
Source§impl<I, D, S> Debug for SocketState<I, D, S>
impl<I, D, S> Debug for SocketState<I, D, S>
Source§impl<I, D, S, IpType> GenericOverIp<IpType> for SocketState<I, D, S>
impl<I, D, S, IpType> GenericOverIp<IpType> for SocketState<I, D, S>
Source§type Type = SocketState<IpType, D, S>
type Type = SocketState<IpType, D, S>
The type of
Self
when its IP-generic parameter is replaced with the
type NewIp
.