Trait DefaultApi
Source pub trait DefaultApi: Send + Sync {
Show 29 methods
// Required methods
fn boot_vm(&self) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>;
fn create_vm(
&self,
vm_config: VmConfig,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>;
fn delete_vm(
&self,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>;
fn pause_vm(
&self,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>;
fn power_button_vm(
&self,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>;
fn reboot_vm(
&self,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>;
fn resume_vm(
&self,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>;
fn shutdown_vm(
&self,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>;
fn shutdown_vmm(
&self,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>;
fn vm_add_device_put(
&self,
device_config: DeviceConfig,
) -> Pin<Box<dyn Future<Output = Result<PciDeviceInfo, Error>> + Send>>;
fn vm_add_disk_put(
&self,
disk_config: DiskConfig,
) -> Pin<Box<dyn Future<Output = Result<PciDeviceInfo, Error>> + Send>>;
fn vm_add_fs_put(
&self,
fs_config: FsConfig,
) -> Pin<Box<dyn Future<Output = Result<PciDeviceInfo, Error>> + Send>>;
fn vm_add_net_put(
&self,
net_config: NetConfig,
) -> Pin<Box<dyn Future<Output = Result<PciDeviceInfo, Error>> + Send>>;
fn vm_add_pmem_put(
&self,
pmem_config: PmemConfig,
) -> Pin<Box<dyn Future<Output = Result<PciDeviceInfo, Error>> + Send>>;
fn vm_add_user_device_put(
&self,
vm_add_user_device: VmAddUserDevice,
) -> Pin<Box<dyn Future<Output = Result<PciDeviceInfo, Error>> + Send>>;
fn vm_add_vdpa_put(
&self,
vdpa_config: VdpaConfig,
) -> Pin<Box<dyn Future<Output = Result<PciDeviceInfo, Error>> + Send>>;
fn vm_add_vsock_put(
&self,
vsock_config: VsockConfig,
) -> Pin<Box<dyn Future<Output = Result<PciDeviceInfo, Error>> + Send>>;
fn vm_coredump_put(
&self,
vm_coredump_data: VmCoredumpData,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>;
fn vm_counters_get(
&self,
) -> Pin<Box<dyn Future<Output = Result<HashMap<String, HashMap<String, i64>>, Error>> + Send>>;
fn vm_info_get(
&self,
) -> Pin<Box<dyn Future<Output = Result<VmInfo, Error>> + Send>>;
fn vm_receive_migration_put(
&self,
receive_migration_data: ReceiveMigrationData,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>;
fn vm_remove_device_put(
&self,
vm_remove_device: VmRemoveDevice,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>;
fn vm_resize_put(
&self,
vm_resize: VmResize,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>;
fn vm_resize_zone_put(
&self,
vm_resize_zone: VmResizeZone,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>;
fn vm_restore_put(
&self,
restore_config: RestoreConfig,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>;
fn vm_send_migration_put(
&self,
send_migration_data: SendMigrationData,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>;
fn vm_snapshot_put(
&self,
vm_snapshot_config: VmSnapshotConfig,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>;
fn vmm_nmi_put(
&self,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send>>;
fn vmm_ping_get(
&self,
) -> Pin<Box<dyn Future<Output = Result<VmmPingResponse, Error>> + Send>>;
}