Trait SocketOpsFilter

Source
pub trait SocketOpsFilter<D: StrongDeviceIdentifier, T> {
    // Required method
    fn on_egress<I: FilterIpExt, P: IpPacket<I>>(
        &self,
        packet: &P,
        device: &D,
        tx_metadata: &T,
        marks: &Marks,
    ) -> SocketEgressFilterResult;
}
Expand description

Trait for a socket operations filter.

Required Methods§

Source

fn on_egress<I: FilterIpExt, P: IpPacket<I>>( &self, packet: &P, device: &D, tx_metadata: &T, marks: &Marks, ) -> SocketEgressFilterResult

Called on every outgoing packet originated from a local socket.

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.

Implementors§