pub struct PcapClient<S> { /* private fields */ }Implementations§
Source§impl<S: AsyncRead + AsyncWrite + Unpin> PcapClient<S>
impl<S: AsyncRead + AsyncWrite + Unpin> PcapClient<S>
pub fn new(stream: S) -> Self
pub async fn next_packet(&mut self) -> Result<CapturedPacket, PcapError>
Auto Trait Implementations§
impl<S> Freeze for PcapClient<S>where
S: Freeze,
impl<S> RefUnwindSafe for PcapClient<S>where
S: RefUnwindSafe,
impl<S> Send for PcapClient<S>where
S: Send,
impl<S> Sync for PcapClient<S>where
S: Sync,
impl<S> Unpin for PcapClient<S>where
S: Unpin,
impl<S> UnsafeUnpin for PcapClient<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for PcapClient<S>where
S: UnwindSafe,
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