pub struct SetCpuTarget {
pub online: u32,
}Expand description
Set a CPU target without waiting for guest convergence.
Fields§
§online: u32Requested online CPUs.
Implementations§
Trait Implementations§
Source§impl CheckedControlRequest for SetCpuTarget
impl CheckedControlRequest for SetCpuTarget
Source§fn json_request(&self) -> ControlClientResult<ControlRequest>
fn json_request(&self) -> ControlClientResult<ControlRequest>
Prepare the actual legacy operation, before any connection or write.
Source§fn decode_json(&self, reply: JsonReply) -> ControlClientResult<Self::Response>
fn decode_json(&self, reply: JsonReply) -> ControlClientResult<Self::Response>
Normalize a real JSON response, preserving its original bytes on failure.
Source§impl Clone for SetCpuTarget
impl Clone for SetCpuTarget
Source§fn clone(&self) -> SetCpuTarget
fn clone(&self) -> SetCpuTarget
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SetCpuTarget
Source§impl Debug for SetCpuTarget
impl Debug for SetCpuTarget
Source§impl Request<ControlProtocol> for SetCpuTarget
impl Request<ControlProtocol> for SetCpuTarget
Source§type Error = ControlClientError
type Error = ControlClientError
Application error that can also retain a local transport failure.
Source§fn message(&self) -> ControlClientResult<EncodedMessage>
fn message(&self) -> ControlClientResult<EncodedMessage>
Encode the prepared request without performing I/O.
Auto Trait Implementations§
impl Freeze for SetCpuTarget
impl RefUnwindSafe for SetCpuTarget
impl Send for SetCpuTarget
impl Sync for SetCpuTarget
impl Unpin for SetCpuTarget
impl UnsafeUnpin for SetCpuTarget
impl UnwindSafe for SetCpuTarget
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