pub struct ShutdownParams {
pub shutdown_type: ShutdownType,
pub force: bool,
}
Expand description
Guest shutdown parameters.
Fields§
§shutdown_type: ShutdownType
The type of power state change.
force: bool
Whether to force a shutdown.
Trait Implementations§
Source§impl Debug for ShutdownParams
impl Debug for ShutdownParams
Source§impl DefaultEncoding for ShutdownParams
impl DefaultEncoding for ShutdownParams
Source§impl<'encoding> StructDecodeMetadata<'encoding, Resource> for ShutdownParams
impl<'encoding> StructDecodeMetadata<'encoding, Resource> for ShutdownParams
Source§impl StructEncodeMetadata<Resource> for ShutdownParams
impl StructEncodeMetadata<Resource> for ShutdownParams
Auto Trait Implementations§
impl Freeze for ShutdownParams
impl RefUnwindSafe for ShutdownParams
impl Send for ShutdownParams
impl Sync for ShutdownParams
impl Unpin for ShutdownParams
impl UnwindSafe for ShutdownParams
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> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> MeshField for T
impl<T> MeshField for T
§impl<T> MeshPayload for T
impl<T> MeshPayload for T
§impl<T> SerializeMessage for Twhere
T: 'static + MeshPayload + Send,
impl<T> SerializeMessage for Twhere
T: 'static + MeshPayload + Send,
§fn compute_message_size(&mut self, sizer: MessageSizer<'_>)
fn compute_message_size(&mut self, sizer: MessageSizer<'_>)
Computes the message size, as in [
MessageEncode::compute_message_size
].§fn write_message(self, writer: MessageWriter<'_, '_, Resource>)
fn write_message(self, writer: MessageWriter<'_, '_, Resource>)
Writes the message, as in [
MessageEncode::write_message
].