Skip to main content

RouterEvent

Type Alias RouterEvent 

Source
pub type RouterEvent = Event;
Expand description

An alias for a router event, to clearly separate it from other events in the simulator. Code external to the router should probably prefer this RouterEvent to the Event syntax for clarity.

Aliased Type§

pub enum RouterEvent {
    PacketArrival(PacketRc),
    DeviceInterrupt(Ipv4Addr),
    Wakeup,
}

Variants§

§

PacketArrival(PacketRc)

A packet has arrived to the host from the simulated network.

§

DeviceInterrupt(Ipv4Addr)

A packet device has new data that needs to be routed.

§

Wakeup

The router’s requested wakeup time has been reached.