Enum vm_control::VmResponse
source · pub enum VmResponse {
Show 13 variants
Ok,
Err(Error),
ErrString(String),
RegisterMemory {
slot: u32,
},
BalloonStats {
stats: BalloonStats,
balloon_actual: u64,
},
BalloonWS {
ws: BalloonWS,
balloon_actual: u64,
},
PciHotPlugResponse {
bus: u8,
},
UsbResponse(UsbControlResult),
GpuResponse(GpuControlResult),
BatResponse(BatControlResult),
SwapStatus(SwapStatus),
DevicesState(DevicesState),
VcpuPidTidResponse {
pid_tid_map: BTreeMap<usize, (u32, u32)>,
},
}
Expand description
Indication of success or failure of a VmRequest
.
Success is usually indicated VmResponse::Ok
unless there is data associated with the response.
Variants§
Ok
Indicates the request was executed successfully.
Err(Error)
Indicates the request encountered some error during execution.
ErrString(String)
Indicates the request encountered some error during execution.
RegisterMemory
The memory was registered into guest address space in memory slot number slot
.
BalloonStats
Results of balloon control commands.
BalloonWS
Results of balloon WS-R command
PciHotPlugResponse
Results of PCI hot plug
UsbResponse(UsbControlResult)
Results of usb control commands.
GpuResponse(GpuControlResult)
Results of gpu control commands.
BatResponse(BatControlResult)
Results of battery control commands.
SwapStatus(SwapStatus)
Results of swap status command.
DevicesState(DevicesState)
Gets the state of Devices (sleep/wake)
VcpuPidTidResponse
Map of the Vcpu PID/TIDs
Trait Implementations§
source§impl Clone for VmResponse
impl Clone for VmResponse
source§fn clone(&self) -> VmResponse
fn clone(&self) -> VmResponse
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for VmResponse
impl Debug for VmResponse
source§impl<'de> Deserialize<'de> for VmResponse
impl<'de> Deserialize<'de> for VmResponse
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for VmResponse
impl Display for VmResponse
source§impl From<VmResponse> for ModifyGpuResult
impl From<VmResponse> for ModifyGpuResult
source§fn from(response: VmResponse) -> Self
fn from(response: VmResponse) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for VmResponse
impl Send for VmResponse
impl Sync for VmResponse
impl Unpin for VmResponse
impl UnwindSafe for VmResponse
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.