pub struct SendRecvReport { /* private fields */ }Expand description
Detailed result returned by send/receive operations.
Implementations§
Source§impl SendRecvReport
impl SendRecvReport
Sourcepub fn new(
send_reports: Vec<SendReport>,
reply: Option<Packet>,
effective_filter: Option<String>,
) -> Self
pub fn new( send_reports: Vec<SendReport>, reply: Option<Packet>, effective_filter: Option<String>, ) -> Self
Create a send/receive report.
Sourcepub fn send_reports(&self) -> &[SendReport]
pub fn send_reports(&self) -> &[SendReport]
Per-attempt send reports.
Sourcepub fn into_reply(self) -> Option<Packet>
pub fn into_reply(self) -> Option<Packet>
Consume this report and return the matching reply, if one was captured.
Sourcepub fn effective_filter(&self) -> Option<&str>
pub fn effective_filter(&self) -> Option<&str>
Effective capture filter used for this send/receive operation.
Trait Implementations§
Source§impl Clone for SendRecvReport
impl Clone for SendRecvReport
Source§fn clone(&self) -> SendRecvReport
fn clone(&self) -> SendRecvReport
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for SendRecvReport
impl !UnwindSafe for SendRecvReport
impl Freeze for SendRecvReport
impl Send for SendRecvReport
impl Sync for SendRecvReport
impl Unpin for SendRecvReport
impl UnsafeUnpin for SendRecvReport
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more