pub fn iter<'a, 'b>(&'b mut self, mem: &'a GuestMemoryMmap) -> AvailIter<'a, 'b> {
        let queue_size = self.actual_size();
        let avail_ring = self.avail_ring;

        let (region, addr) = mem.to_region_addr(avail_ring).unwrap();
        let index_addr = match region.checked_offset(addr, 2) {
            Some(ret) => ret,
            None => panic!("invalid avail_ring!"),
        };
        let last_index: u16 = region.read_obj(index_addr).unwrap();

        AvailIter {
            mem,
            desc_table: self.desc_table,
            avail_ring,
            next_index: self.next_avail,
            last_index: Wrapping(last_index),
            queue_size,
            next_avail: &mut self.next_avail,
        }
    }
/// A consuming iterator over all available descriptor chain heads offered by the driver.
A consuming iterator over all available descriptor chain heads offered by the driver.
A consuming iterator over all available descriptor chain heads offered by the driver .
pub fn iter<'a, 'b>(&'b mut self, mem: &'a GuestMemoryMmap) -> AvailIter<'a, 'b> {
        let queue_size = self.actual_size();
        let avail_ring = self.avail_ring;
        let (region, addr) = mem.to_region_addr(avail_ring).unwrap();
        let index_addr = match region.checked_offset(addr, 2) {
            Some(ret) => ret,
            None => panic!("invalid avail_ring!"),
        };
        let last_index: u16 = region.read_obj(index_addr).unwrap();
        AvailIter {
            mem,
            desc_table: self.desc_table,
            avail_ring,
            next_index: self.next_avail,
            last_index: Wrapping(last_index),
            queue_size,
            next_avail: &mut self.next_avail,
        }
    }
pub fn iter < ' a , ' b > ( & ' b mut self , mem : & ' a GuestMemoryMmap ) -> AvailIter < ' a , ' b > { let queue_size = self . actual_size ( ) ; let avail_ring = self . avail_ring ; let ( region , addr ) = mem . to_region_addr ( avail_ring ) . unwrap ( ) ; let index_addr = match region . checked_offset ( addr , 2 ) { Some ( ret ) => ret , None => panic ! ( " " ) , } ; let last_index : u16 = region . read_obj ( index_addr ) . unwrap ( ) ; AvailIter { mem , desc_table : self . desc_table , avail_ring , next_index : self . next_avail , last_index : Wrapping ( last_index ) , queue_size , next_avail : & mut self . next_avail , } }
A consuming iterator over all available descriptor chain heads offered by the driver.
A consuming iterator over all available descriptor chain heads offered by the driver .
&'b mut self
mem
&'a GuestMemoryMmap