pub trait BindingsPacketMatcher<D> {
// Required method
fn matches<I: FilterIpExt, P: FilterIpPacket<I>>(
&self,
packet: &P,
interfaces: Interfaces<'_, D>,
meta: &impl FilterPacketMetadata,
) -> bool;
}Expand description
A trait for external matchers supplied by bindings.
Required Methods§
Sourcefn matches<I: FilterIpExt, P: FilterIpPacket<I>>(
&self,
packet: &P,
interfaces: Interfaces<'_, D>,
meta: &impl FilterPacketMetadata,
) -> bool
fn matches<I: FilterIpExt, P: FilterIpPacket<I>>( &self, packet: &P, interfaces: Interfaces<'_, D>, meta: &impl FilterPacketMetadata, ) -> bool
Returns true if the packet matches.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.