Struct pnet_transport::Icmpv6TransportChannelIterator [−][src]
pub struct Icmpv6TransportChannelIterator<'a> { /* fields omitted */ }Expand description
An iterator over packets of type Icmpv6Packet.
Implementations
Get the next (Icmpv6Packet, IpAddr) pair for the given channel.
pub fn next_with_timeout(
&mut self,
t: Duration
) -> Result<Option<(Icmpv6Packet<'_>, IpAddr)>>
pub fn next_with_timeout(
&mut self,
t: Duration
) -> Result<Option<(Icmpv6Packet<'_>, IpAddr)>>
Wait only for a timespan of t to receive some data, then return. If no data was
received, then Ok(None) is returned.
