BindingsPacketMatcher

Trait BindingsPacketMatcher 

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

A trait for external matchers supplied by bindings.

Required Methods§

Source

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

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, P>(&self, _packet: &P) -> bool
where I: FilterIpExt, P: IpPacket<I>,

Source§

impl<M> BindingsPacketMatcher for Arc<M>

Source§

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

Implementors§