Module netstack3_core::testutil::context
source · Expand description
Context test utilities.
Structs§
- A test helper used to provide an implementation of a bindings context.
- A wrapper which implements
RngCore
andCryptoRng
for anyRngCore
. - A fake
EventContext
. - A fake [
FrameContext
]. - A fake implementation of
Instant
for use in testing. - A fake
InstantContext
which stores the current time as aFakeInstant
. - A fake implementation of
LinkResolutionNotifier
. - A fake
TimerContext
which stores time as aFakeInstantCtx
. - A fake
TracingContext
. - Arbitrary data of type
D
attached to aFakeInstant
. - A tuple of device ID and IP version.
Traits§
- Adds methods for interacting with
FakeTimerCtx
and its wrappers. - A trait for abstracting contexts that may contain a
FakeFrameCtx
. - A trait abstracting access to a
FakeTimerCtx
instance.