Trait linkspace::runtime::cb::PktHandler
source · pub trait PktHandler {
// Required method
fn handle_pkt(
&mut self,
pkt: &dyn NetPkt,
lk: &Linkspace
) -> ControlFlow<()>;
// Provided method
fn stopped(
&mut self,
_: Query,
_: &Linkspace,
_: StopReason,
_total_calls: u32,
_watch_calls: u32
) { ... }
}
Expand description
Required Methods§
sourcefn handle_pkt(&mut self, pkt: &dyn NetPkt, lk: &Linkspace) -> ControlFlow<()>
fn handle_pkt(&mut self, pkt: &dyn NetPkt, lk: &Linkspace) -> ControlFlow<()>
Handles an event.
Provided Methods§
Trait Implementations§
source§impl PktHandler for Box<dyn PktHandler>
impl PktHandler for Box<dyn PktHandler>
source§fn handle_pkt(&mut self, pkt: &dyn NetPkt, lk: &Linkspace) -> ControlFlow<()>
fn handle_pkt(&mut self, pkt: &dyn NetPkt, lk: &Linkspace) -> ControlFlow<()>
Handles an event.