pub struct IcmpState<I: IpExt, BT: IcmpBindingsTypes> {
pub tx_counters: IcmpTxCounters<I>,
pub rx_counters: IcmpRxCounters<I>,
/* private fields */
}
Expand description
The IP layer’s ICMP state.
Fields§
§tx_counters: IcmpTxCounters<I>
ICMP transmit counters.
rx_counters: IcmpRxCounters<I>
ICMP receive counters.
Trait Implementations§
Source§impl<I: IpExt, BT: IcmpBindingsTypes, IpType> GenericOverIp<IpType> for IcmpState<I, BT>
impl<I: IpExt, BT: IcmpBindingsTypes, IpType> GenericOverIp<IpType> for IcmpState<I, BT>
Source§impl<I, BT> OrderedLockAccess<IpMarked<I, TokenBucket<<BT as InstantBindingsTypes>::Instant>>> for IcmpState<I, BT>where
I: IpExt,
BT: IcmpBindingsTypes,
impl<I, BT> OrderedLockAccess<IpMarked<I, TokenBucket<<BT as InstantBindingsTypes>::Instant>>> for IcmpState<I, BT>where
I: IpExt,
BT: IcmpBindingsTypes,
Source§type Lock = Mutex<IpMarked<I, TokenBucket<<BT as InstantBindingsTypes>::Instant>>>
type Lock = Mutex<IpMarked<I, TokenBucket<<BT as InstantBindingsTypes>::Instant>>>
The lock type that observes ordering. Read more
Source§fn ordered_lock_access(&self) -> OrderedLockRef<'_, Self::Lock>
fn ordered_lock_access(&self) -> OrderedLockRef<'_, Self::Lock>
Returns a borrow to the order-aware lock. Read more
Auto Trait Implementations§
impl<I, BT> !Freeze for IcmpState<I, BT>
impl<I, BT> RefUnwindSafe for IcmpState<I, BT>where
I: RefUnwindSafe,
impl<I, BT> Send for IcmpState<I, BT>
impl<I, BT> Sync for IcmpState<I, BT>
impl<I, BT> Unpin for IcmpState<I, BT>
impl<I, BT> UnwindSafe for IcmpState<I, BT>where
I: 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