pub fn new(cid: u64, backend: B) -> super::Result<Vsock<B>> {
        let queues: Vec<VirtQueue> = defs::QUEUE_SIZES
            .iter()
            .map(|&max_size| VirtQueue::new(max_size))
            .collect();
        Self::with_queues(cid, backend, queues)
    }
/// Create a new virtio-vsock device with the given VM CID and vsock backend.
Create a new virtio-vsock device with the given VM CID and vsock backend.
Create a new virtio - vsock device with the given VM CID and vsock backend .
pub fn new(cid: u64, backend: B) -> super::Result<Vsock<B>> {
        let queues: Vec<VirtQueue> = defs::QUEUE_SIZES
            .iter()
            .map(|&max_size| VirtQueue::new(max_size))
            .collect();
        Self::with_queues(cid, backend, queues)
    }
pub fn new ( cid : u64 , backend : B ) -> super :: Result < Vsock < B > > { let queues : Vec < VirtQueue > = defs :: QUEUE_SIZES . iter ( ) . map ( | & max_size | VirtQueue :: new ( max_size ) ) . collect ( ) ; Self :: with_queues ( cid , backend , queues ) }
Create a new virtio-vsock device with the given VM CID and vsock backend.
Create a new virtio - vsock device with the given VM CID and vsock backend .
cid
u64
backend
B