pub struct Ipv4TransportChannelIterator<'a> { /* private fields */ }
Expand description
An iterator over packets of type Ipv4Packet
.
Implementations§
source§impl<'a> Ipv4TransportChannelIterator<'a>
impl<'a> Ipv4TransportChannelIterator<'a>
sourcepub fn next(&mut self) -> Result<(Ipv4Packet<'_>, IpAddr)>
pub fn next(&mut self) -> Result<(Ipv4Packet<'_>, IpAddr)>
Get the next (Ipv4Packet
, IpAddr
) pair for the given channel.
sourcepub fn next_with_timeout(
&mut self,
t: Duration
) -> Result<Option<(Ipv4Packet<'_>, IpAddr)>>
pub fn next_with_timeout( &mut self, t: Duration ) -> Result<Option<(Ipv4Packet<'_>, IpAddr)>>
Wait only for a timespan of t
to receive some data, then return. If no data was
received, then Ok(None)
is returned.
Auto Trait Implementations§
impl<'a> Freeze for Ipv4TransportChannelIterator<'a>
impl<'a> RefUnwindSafe for Ipv4TransportChannelIterator<'a>
impl<'a> Send for Ipv4TransportChannelIterator<'a>
impl<'a> Sync for Ipv4TransportChannelIterator<'a>
impl<'a> Unpin for Ipv4TransportChannelIterator<'a>
impl<'a> !UnwindSafe for Ipv4TransportChannelIterator<'a>
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