pub struct Icmpv6TransportChannelIterator<'a> { /* private fields */ }
Expand description
An iterator over packets of type Icmpv6Packet
.
Implementations§
source§impl<'a> Icmpv6TransportChannelIterator<'a>
impl<'a> Icmpv6TransportChannelIterator<'a>
sourcepub fn next(&mut self) -> Result<(Icmpv6Packet<'_>, IpAddr)>
pub fn next(&mut self) -> Result<(Icmpv6Packet<'_>, IpAddr)>
Get the next (Icmpv6Packet
, IpAddr
) pair for the given channel.
sourcepub 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.
Auto Trait Implementations§
impl<'a> Freeze for Icmpv6TransportChannelIterator<'a>
impl<'a> RefUnwindSafe for Icmpv6TransportChannelIterator<'a>
impl<'a> Send for Icmpv6TransportChannelIterator<'a>
impl<'a> Sync for Icmpv6TransportChannelIterator<'a>
impl<'a> Unpin for Icmpv6TransportChannelIterator<'a>
impl<'a> !UnwindSafe for Icmpv6TransportChannelIterator<'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