ScmpHandler

Trait ScmpHandler 

Source
pub trait ScmpHandler: Send + Sync {
    // Required method
    fn handle_packet(
        &self,
        packet: ScionPacketScmp,
    ) -> Pin<Box<dyn Future<Output = ()> + Send + '_>>;
}
Expand description

A trait for handling SCMP packets when they are received. It will be called with all SCMP packets that are received irrespective whether a destination port is specified or not.

Required Methods§

Source

fn handle_packet( &self, packet: ScionPacketScmp, ) -> Pin<Box<dyn Future<Output = ()> + Send + '_>>

Handle a received SCMP packet.

Implementors§