Trait netstack3_ip::IpLayerIpExt
source · pub trait IpLayerIpExt: IpExt + MulticastRouteIpExt + IcmpHandlerIpExt + FilterIpExt {
type AddressStatus: Debug;
type State<StrongDeviceId: StrongDeviceIdentifier, BT: IpLayerBindingsTypes>: AsRef<IpStateInner<Self, StrongDeviceId, BT>>;
type PacketIdState;
type PacketId;
type RxCounters: Default + Inspectable;
// Required method
fn next_packet_id_from_state(state: &Self::PacketIdState) -> Self::PacketId;
}
Expand description
An extension trait providing IP layer properties.
Required Associated Types§
sourcetype AddressStatus: Debug
type AddressStatus: Debug
IP Address status.
sourcetype State<StrongDeviceId: StrongDeviceIdentifier, BT: IpLayerBindingsTypes>: AsRef<IpStateInner<Self, StrongDeviceId, BT>>
type State<StrongDeviceId: StrongDeviceIdentifier, BT: IpLayerBindingsTypes>: AsRef<IpStateInner<Self, StrongDeviceId, BT>>
IP Address state.
sourcetype PacketIdState
type PacketIdState
State kept for packet identifiers.
sourcetype RxCounters: Default + Inspectable
type RxCounters: Default + Inspectable
Receive counters.
Required Methods§
sourcefn next_packet_id_from_state(state: &Self::PacketIdState) -> Self::PacketId
fn next_packet_id_from_state(state: &Self::PacketIdState) -> Self::PacketId
Produces the next packet ID from the state.
Object Safety§
This trait is not object safe.