pub fn create_unixsock_vsock(cfg: VsockDeviceConfig) -> Result<Vsock<VsockUnixBackend>> {
        let backend = VsockUnixBackend::new(u64::from(cfg.guest_cid), cfg.host_port_map)
            .map_err(VsockConfigError::CreateVsockBackend)?;

        Vsock::new(u64::from(cfg.guest_cid), backend).map_err(VsockConfigError::CreateVsockDevice)
    }
/// Creates a Vsock device from a VsockDeviceConfig.
Creates a Vsock device from a VsockDeviceConfig.
Creates a Vsock device from a VsockDeviceConfig .
pub fn create_unixsock_vsock(cfg: VsockDeviceConfig) -> Result<Vsock<VsockUnixBackend>> {
        let backend = VsockUnixBackend::new(u64::from(cfg.guest_cid), cfg.host_port_map)
            .map_err(VsockConfigError::CreateVsockBackend)?;
        Vsock::new(u64::from(cfg.guest_cid), backend).map_err(VsockConfigError::CreateVsockDevice)
    }
pub fn create_unixsock_vsock ( cfg : VsockDeviceConfig ) -> Result < Vsock < VsockUnixBackend > > { let backend = VsockUnixBackend :: new ( u64 :: from ( cfg . guest_cid ) , cfg . host_port_map ) . map_err ( VsockConfigError :: CreateVsockBackend ) ? ; Vsock :: new ( u64 :: from ( cfg . guest_cid ) , backend ) . map_err ( VsockConfigError :: CreateVsockDevice ) }
Creates a Vsock device from a VsockDeviceConfig.
Creates a Vsock device from a VsockDeviceConfig .
cfg
VsockDeviceConfig