pub struct Ipv4State<StrongDeviceId: StrongDeviceIdentifier, BT: IpLayerBindingsTypes> {
pub inner: IpStateInner<Ipv4, StrongDeviceId, BT>,
pub icmp: Icmpv4State<BT>,
pub next_packet_id: AtomicU16,
}
Expand description
The stack’s IPv4 state.
Fields§
§inner: IpStateInner<Ipv4, StrongDeviceId, BT>
The common inner IP layer state.
icmp: Icmpv4State<BT>
The ICMP state.
next_packet_id: AtomicU16
The atomic counter providing IPv4 packet identifiers.
Trait Implementations§
Source§impl<StrongDeviceId: StrongDeviceIdentifier, BT: IpLayerBindingsTypes> AsRef<IpStateInner<Ipv4, StrongDeviceId, BT>> for Ipv4State<StrongDeviceId, BT>
impl<StrongDeviceId: StrongDeviceIdentifier, BT: IpLayerBindingsTypes> AsRef<IpStateInner<Ipv4, StrongDeviceId, BT>> for Ipv4State<StrongDeviceId, BT>
Source§fn as_ref(&self) -> &IpStateInner<Ipv4, StrongDeviceId, BT>
fn as_ref(&self) -> &IpStateInner<Ipv4, StrongDeviceId, BT>
Converts this type into a shared reference of the (usually inferred) input type.
Auto Trait Implementations§
impl<StrongDeviceId, BT> !Freeze for Ipv4State<StrongDeviceId, BT>
impl<StrongDeviceId, BT> RefUnwindSafe for Ipv4State<StrongDeviceId, BT>
impl<StrongDeviceId, BT> Send for Ipv4State<StrongDeviceId, BT>where
<BT as InstantBindingsTypes>::AtomicInstant: Send,
<BT as FilterBindingsTypes>::DeviceClass: Sync + Send,
impl<StrongDeviceId, BT> Sync for Ipv4State<StrongDeviceId, BT>where
<BT as InstantBindingsTypes>::AtomicInstant: Send + Sync,
<BT as FilterBindingsTypes>::DeviceClass: Sync + Send,
impl<StrongDeviceId, BT> Unpin for Ipv4State<StrongDeviceId, BT>where
<BT as TimerBindingsTypes>::Timer: Unpin,
<BT as InstantBindingsTypes>::Instant: Unpin,
<BT as FilterBindingsTypes>::DeviceClass: Unpin,
impl<StrongDeviceId, BT> UnwindSafe for Ipv4State<StrongDeviceId, BT>
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