BindingsPacketMatcher

Trait BindingsPacketMatcher 

Source
pub trait BindingsPacketMatcher {
    // Required method
    fn matches<I: FilterIpExt, P: IpPacket<I>>(&self, packet: &P) -> bool;
}
Expand description

A trait for external matchers supplied by bindings.

Required Methods§

Source

fn matches<I: FilterIpExt, P: IpPacket<I>>(&self, packet: &P) -> 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.

Implementations on Foreign Types§

Source§

impl BindingsPacketMatcher for Infallible

Source§

fn matches<I: FilterIpExt, P: IpPacket<I>>(&self, _packet: &P) -> bool

Source§

impl<M: BindingsPacketMatcher> BindingsPacketMatcher for Arc<M>

Source§

fn matches<I: FilterIpExt, P: IpPacket<I>>(&self, packet: &P) -> bool

Implementors§