pub struct IpPacketFragmentCache<I: Ip, BT: FragmentBindingsTypes> { /* private fields */ }
Expand description
A cache of inbound IP packet fragments.
Implementations§
Source§impl<I: Ip, BC: FragmentBindingsContext> IpPacketFragmentCache<I, BC>
impl<I: Ip, BC: FragmentBindingsContext> IpPacketFragmentCache<I, BC>
Sourcepub fn new<CC: CoreTimerContext<FragmentTimerId<I>, BC>>(
bindings_ctx: &mut BC,
) -> IpPacketFragmentCache<I, BC>
pub fn new<CC: CoreTimerContext<FragmentTimerId<I>, BC>>( bindings_ctx: &mut BC, ) -> IpPacketFragmentCache<I, BC>
Creates a new IpFragmentCache
.
Trait Implementations§
Source§impl<I: Debug + Ip, BT: Debug + FragmentBindingsTypes> Debug for IpPacketFragmentCache<I, BT>
impl<I: Debug + Ip, BT: Debug + FragmentBindingsTypes> Debug for IpPacketFragmentCache<I, BT>
Source§impl<I: IpLayerIpExt, D: StrongDeviceIdentifier, BT: IpLayerBindingsTypes> OrderedLockAccess<IpPacketFragmentCache<I, BT>> for IpStateInner<I, D, BT>
impl<I: IpLayerIpExt, D: StrongDeviceIdentifier, BT: IpLayerBindingsTypes> OrderedLockAccess<IpPacketFragmentCache<I, BT>> for IpStateInner<I, D, BT>
Source§type Lock = Mutex<IpPacketFragmentCache<I, BT>>
type Lock = Mutex<IpPacketFragmentCache<I, BT>>
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 IpPacketFragmentCache<I, BT>
impl<I, BT> RefUnwindSafe for IpPacketFragmentCache<I, BT>where
<BT as TimerBindingsTypes>::Timer: RefUnwindSafe,
<I as Ip>::Addr: RefUnwindSafe,
<BT as InstantBindingsTypes>::Instant: RefUnwindSafe,
impl<I, BT> Send for IpPacketFragmentCache<I, BT>
impl<I, BT> Sync for IpPacketFragmentCache<I, BT>
impl<I, BT> Unpin for IpPacketFragmentCache<I, BT>where
<BT as TimerBindingsTypes>::Timer: Unpin,
<I as Ip>::Addr: Unpin,
<BT as InstantBindingsTypes>::Instant: Unpin,
impl<I, BT> UnwindSafe for IpPacketFragmentCache<I, BT>where
<BT as TimerBindingsTypes>::Timer: UnwindSafe,
<I as Ip>::Addr: UnwindSafe,
<BT as InstantBindingsTypes>::Instant: 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