pub struct RawSocketIter<'a, 'd> { /* private fields */ }Expand description
Iterator over the raw sockets of a Stack, returned by Stack::raw_sockets.
Each item borrows the stack, so only one can exist at a time. That is why this is
not an Iterator and cannot be used in a for loop. Use while let:
let mut iter = stack.raw_sockets();
while let Some((handle, item)) = iter.next() {
let _ = (handle, item.can_recv());
}Implementations§
Auto Trait Implementations§
impl<'a, 'd> !RefUnwindSafe for RawSocketIter<'a, 'd>
impl<'a, 'd> !Send for RawSocketIter<'a, 'd>
impl<'a, 'd> !Sync for RawSocketIter<'a, 'd>
impl<'a, 'd> !UnwindSafe for RawSocketIter<'a, 'd>
impl<'a, 'd> Freeze for RawSocketIter<'a, 'd>
impl<'a, 'd> Unpin for RawSocketIter<'a, 'd>
impl<'a, 'd> UnsafeUnpin for RawSocketIter<'a, 'd>
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