pub enum GuestManagerRequest {
Launch {
guest_config: GuestConfig,
controller: ServerEnd<GuestMarker>,
responder: GuestManagerLaunchResponder,
},
ForceShutdown {
responder: GuestManagerForceShutdownResponder,
},
Connect {
controller: ServerEnd<GuestMarker>,
responder: GuestManagerConnectResponder,
},
GetInfo {
responder: GuestManagerGetInfoResponder,
},
}
Variants§
Launch
Launch a new guest instance.
Possible errors: - BAD_CONFIG: Failed to parse the config from the guest package, or other config problems detected by the guest manager. - ALREADY_RUNNING: The guest is already running. Stop the guest before launching again. - START_FAILURE: Failed to initialize the VMM and devices, and start the guest. See component logs for a more specific failure.
Fields
§
guest_config: GuestConfig
§
controller: ServerEnd<GuestMarker>
§
responder: GuestManagerLaunchResponder
ForceShutdown
Forcibly shuts down a running guest. Immediately after ForceShutdown returns, Launch can be used to launch another guest.
Fields
§
responder: GuestManagerForceShutdownResponder
Connect
Connect to a currently running guest.
Possible errors: - NOT_RUNNING: Attempted to connect to a guest in a non-running state. Ensure the guest has launched before attempting to reconnect.
GetInfo
Query guest info
Fields
§
responder: GuestManagerGetInfoResponder
Implementations§
Source§impl GuestManagerRequest
impl GuestManagerRequest
pub fn into_launch( self, ) -> Option<(GuestConfig, ServerEnd<GuestMarker>, GuestManagerLaunchResponder)>
pub fn into_force_shutdown(self) -> Option<GuestManagerForceShutdownResponder>
pub fn into_connect( self, ) -> Option<(ServerEnd<GuestMarker>, GuestManagerConnectResponder)>
pub fn into_get_info(self) -> Option<GuestManagerGetInfoResponder>
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GuestManagerRequest
impl !RefUnwindSafe for GuestManagerRequest
impl Send for GuestManagerRequest
impl Sync for GuestManagerRequest
impl Unpin for GuestManagerRequest
impl !UnwindSafe for GuestManagerRequest
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