Skip to main content

PacketSendRecvExt

Trait PacketSendRecvExt 

Source
pub trait PacketSendRecvExt {
    // Required methods
    fn reply_filter(&self) -> Result<String>;
    fn send_recv(&self, options: impl Into<SendRecv>) -> Result<Option<Packet>>;
    fn send_recv_report(
        &self,
        options: impl Into<SendRecv>,
    ) -> Result<SendRecvReport>;
}
Expand description

Protocol-aware matcher for replies to one request packet.

Required Methods§

Source

fn reply_filter(&self) -> Result<String>

Derive a BPF-style filter for likely replies.

Source

fn send_recv(&self, options: impl Into<SendRecv>) -> Result<Option<Packet>>

Send a packet and return the first matching reply, if any.

Source

fn send_recv_report( &self, options: impl Into<SendRecv>, ) -> Result<SendRecvReport>

Send a packet and return a detailed send/receive report.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§