pub fn create_queue(&self) -> Queue<GuestMemoryAtomic<GuestMemoryMmap>> {
            let mem = GuestMemoryAtomic::new(self.mem.clone());
            let mut q =
                Queue::<GuestMemoryAtomic<GuestMemoryMmap>, QueueState>::new(mem, self.size());

            q.state.size = self.size();
            q.state.ready = true;
            q.state.desc_table = self.dtable_start();
            q.state.avail_ring = self.avail_start();
            q.state.used_ring = self.used_start();

            q
        }
// Creates a new Queue, using the underlying memory regions represented by the VirtQueue.
Creates a new Queue, using the underlying memory regions represented by the VirtQueue.
Creates a new Queue using the underlying memory regions represented by the VirtQueue .
pub fn create_queue(&self) -> Queue<GuestMemoryAtomic<GuestMemoryMmap>> {
            let mem = GuestMemoryAtomic::new(self.mem.clone());
            let mut q =
                Queue::<GuestMemoryAtomic<GuestMemoryMmap>, QueueState>::new(mem, self.size());
            q.state.size = self.size();
            q.state.ready = true;
            q.state.desc_table = self.dtable_start();
            q.state.avail_ring = self.avail_start();
            q.state.used_ring = self.used_start();
            q
        }
pub fn create_queue ( & self ) -> Queue < GuestMemoryAtomic < GuestMemoryMmap > > { let mem = GuestMemoryAtomic :: new ( self . mem . clone ( ) ) ; let mut q = Queue :: < GuestMemoryAtomic < GuestMemoryMmap > , QueueState > :: new ( mem , self . size ( ) ) ; q . state . size = self . size ( ) ; q . state . ready = true ; q . state . desc_table = self . dtable_start ( ) ; q . state . avail_ring = self . avail_start ( ) ; q . state . used_ring = self . used_start ( ) ; q }
Creates a new Queue, using the underlying memory regions represented by the VirtQueue.
Creates a new Queue using the underlying memory regions represented by the VirtQueue .
&self
&self