pub enum LinuxManagerRequest {
StartAndGetLinuxGuestInfo {
label: String,
responder: LinuxManagerStartAndGetLinuxGuestInfoResponder,
},
WipeData {
responder: LinuxManagerWipeDataResponder,
},
GracefulShutdown {
control_handle: LinuxManagerControlHandle,
},
}
Expand description
A LinuxManager
provides access to the status of Linux guest instances.
Variants§
StartAndGetLinuxGuestInfo
Get Linux guest environment info.
Returns ZX_ERR_UNAVAILABLE if the Linux guest is not available.
WipeData
Clears the stateful data. This includes any installed containers and any user data they may contain.
Returns ZX_ERR_BAD_STATE if this is called while the VM is running. Returns ZX_ERR_IO if there was an IO failure while performing the operation.
Fields
responder: LinuxManagerWipeDataResponder
GracefulShutdown
Attempts to gracefully shut down a running guest. The caller must ensure that the guest has actually stopped (such as by waiting on a Guest client PEER_CLOSED signal and checking the epitaph) before attempting to launch another guest.
On a clean shutdown the Guest client will contain a ZX_OK epitaph, and on an unexpected shutdown the client will contain a ZX_ERR_INTERNAL epitaph (or no epitaph if there was a component crash).
Fields
control_handle: LinuxManagerControlHandle
Implementations§
Source§impl LinuxManagerRequest
impl LinuxManagerRequest
pub fn into_start_and_get_linux_guest_info( self, ) -> Option<(String, LinuxManagerStartAndGetLinuxGuestInfoResponder)>
pub fn into_wipe_data(self) -> Option<LinuxManagerWipeDataResponder>
pub fn into_graceful_shutdown(self) -> Option<LinuxManagerControlHandle>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL