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§
Sourcefn handle_packet(
&self,
packet: ScionPacketScmp,
) -> Pin<Box<dyn Future<Output = ()> + Send + '_>>
fn handle_packet( &self, packet: ScionPacketScmp, ) -> Pin<Box<dyn Future<Output = ()> + Send + '_>>
Handle a received SCMP packet.