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§
Sourcefn reply_filter(&self) -> Result<String>
fn reply_filter(&self) -> Result<String>
Derive a BPF-style filter for likely replies.
Sourcefn send_recv(&self, options: impl Into<SendRecv>) -> Result<Option<Packet>>
fn send_recv(&self, options: impl Into<SendRecv>) -> Result<Option<Packet>>
Send a packet and return the first matching reply, if any.
Sourcefn send_recv_report(
&self,
options: impl Into<SendRecv>,
) -> Result<SendRecvReport>
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".