pub struct IfaceIter<'a, 'd> { /* private fields */ }Expand description
Iterator over the interfaces of a Stack, returned by Stack::ifaces.
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.ifaces();
while let Some((handle, item)) = iter.next() {
let _ = (handle, item.hardware_addr());
}Implementations§
Auto Trait Implementations§
impl<'a, 'd> !RefUnwindSafe for IfaceIter<'a, 'd>
impl<'a, 'd> !Send for IfaceIter<'a, 'd>
impl<'a, 'd> !Sync for IfaceIter<'a, 'd>
impl<'a, 'd> !UnwindSafe for IfaceIter<'a, 'd>
impl<'a, 'd> Freeze for IfaceIter<'a, 'd>
impl<'a, 'd> Unpin for IfaceIter<'a, 'd>
impl<'a, 'd> UnsafeUnpin for IfaceIter<'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