Enum netstack3_core::testutil::DispatchedEvent
source · pub enum DispatchedEvent {
IpDeviceIpv4(IpDeviceEvent<WeakDeviceId<FakeBindingsCtx>, Ipv4, FakeInstant>),
IpDeviceIpv6(IpDeviceEvent<WeakDeviceId<FakeBindingsCtx>, Ipv6, FakeInstant>),
IpLayerIpv4(IpLayerEvent<WeakDeviceId<FakeBindingsCtx>, Ipv4>),
IpLayerIpv6(IpLayerEvent<WeakDeviceId<FakeBindingsCtx>, Ipv6>),
NeighborIpv4(Event<Mac, EthernetWeakDeviceId<FakeBindingsCtx>, Ipv4, FakeInstant>),
NeighborIpv6(Event<Mac, EthernetWeakDeviceId<FakeBindingsCtx>, Ipv6, FakeInstant>),
}
Expand description
Wraps all events emitted by Core into a single enum type.
Variants§
IpDeviceIpv4(IpDeviceEvent<WeakDeviceId<FakeBindingsCtx>, Ipv4, FakeInstant>)
IpDeviceIpv6(IpDeviceEvent<WeakDeviceId<FakeBindingsCtx>, Ipv6, FakeInstant>)
IpLayerIpv4(IpLayerEvent<WeakDeviceId<FakeBindingsCtx>, Ipv4>)
IpLayerIpv6(IpLayerEvent<WeakDeviceId<FakeBindingsCtx>, Ipv6>)
NeighborIpv4(Event<Mac, EthernetWeakDeviceId<FakeBindingsCtx>, Ipv4, FakeInstant>)
NeighborIpv6(Event<Mac, EthernetWeakDeviceId<FakeBindingsCtx>, Ipv6, FakeInstant>)
Trait Implementations§
source§impl Debug for DispatchedEvent
impl Debug for DispatchedEvent
source§impl<I: Ip> From<Event<Mac, BaseDeviceId<EthernetLinkDevice, FakeBindingsCtx>, I, FakeInstant>> for DispatchedEvent
impl<I: Ip> From<Event<Mac, BaseDeviceId<EthernetLinkDevice, FakeBindingsCtx>, I, FakeInstant>> for DispatchedEvent
source§fn from(
e: Event<Mac, EthernetDeviceId<FakeBindingsCtx>, I, FakeInstant>
) -> DispatchedEvent
fn from( e: Event<Mac, EthernetDeviceId<FakeBindingsCtx>, I, FakeInstant> ) -> DispatchedEvent
Converts to this type from the input type.
source§impl<I: Ip> From<IpDeviceEvent<DeviceId<FakeBindingsCtx>, I, FakeInstant>> for DispatchedEvent
impl<I: Ip> From<IpDeviceEvent<DeviceId<FakeBindingsCtx>, I, FakeInstant>> for DispatchedEvent
source§fn from(
e: IpDeviceEvent<DeviceId<FakeBindingsCtx>, I, FakeInstant>
) -> DispatchedEvent
fn from( e: IpDeviceEvent<DeviceId<FakeBindingsCtx>, I, FakeInstant> ) -> DispatchedEvent
Converts to this type from the input type.
source§impl<I: Ip> From<IpLayerEvent<DeviceId<FakeBindingsCtx>, I>> for DispatchedEvent
impl<I: Ip> From<IpLayerEvent<DeviceId<FakeBindingsCtx>, I>> for DispatchedEvent
source§fn from(e: IpLayerEvent<DeviceId<FakeBindingsCtx>, I>) -> DispatchedEvent
fn from(e: IpLayerEvent<DeviceId<FakeBindingsCtx>, I>) -> DispatchedEvent
Converts to this type from the input type.
source§impl<IpType: Ip> GenericOverIp<IpType> for DispatchedEvent
impl<IpType: Ip> GenericOverIp<IpType> for DispatchedEvent
§type Type = DispatchedEvent
type Type = DispatchedEvent
The type of
Self
when its IP-generic parameter is replaced with the
type NewIp
.source§impl Hash for DispatchedEvent
impl Hash for DispatchedEvent
source§impl PartialEq for DispatchedEvent
impl PartialEq for DispatchedEvent
source§fn eq(&self, other: &DispatchedEvent) -> bool
fn eq(&self, other: &DispatchedEvent) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for DispatchedEvent
impl StructuralPartialEq for DispatchedEvent
Auto Trait Implementations§
impl Freeze for DispatchedEvent
impl RefUnwindSafe for DispatchedEvent
impl Send for DispatchedEvent
impl Sync for DispatchedEvent
impl Unpin for DispatchedEvent
impl UnwindSafe for DispatchedEvent
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<Id, CC, BC> TimerHandler<BC, Id> for CCwhere
Id: HandleableTimer<CC, BC>,
impl<Id, CC, BC> TimerHandler<BC, Id> for CCwhere
Id: HandleableTimer<CC, BC>,
source§fn handle_timer(&mut self, bindings_ctx: &mut BC, id: Id)
fn handle_timer(&mut self, bindings_ctx: &mut BC, id: Id)
Handle a timer firing.