Skip to main content

ScmpErrorReceiver

Trait ScmpErrorReceiver 

Source
pub trait ScmpErrorReceiver: Send + Sync {
    // Required method
    fn report_scmp_error<'a>(
        &self,
        scmp_error: ScmpErrorMessage,
        path: ScionDpPathViewRef<'a>,
    );
}
Expand description

Trait for reporting path issues.

Required Methods§

Source

fn report_scmp_error<'a>( &self, scmp_error: ScmpErrorMessage, path: ScionDpPathViewRef<'a>, )

Reports a SCMP error. This function must return immediately and not block.

§Arguments
  • scmp_error - The SCMP error to report.
  • path - The path that the SCMP error was received on (not reversed).

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§