pub enum TerminaGuestManagerRequest {
Launch {
guest_config: GuestConfig,
controller: ServerEnd<GuestMarker>,
responder: TerminaGuestManagerLaunchResponder,
},
ForceShutdown {
responder: TerminaGuestManagerForceShutdownResponder,
},
Connect {
controller: ServerEnd<GuestMarker>,
responder: TerminaGuestManagerConnectResponder,
},
GetInfo {
responder: TerminaGuestManagerGetInfoResponder,
},
}
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: TerminaGuestManagerLaunchResponder
ForceShutdown
Forcibly shuts down a running guest. Immediately after ForceShutdown returns, Launch can be used to launch another guest.
Fields
§
responder: TerminaGuestManagerForceShutdownResponder
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: TerminaGuestManagerGetInfoResponder
Implementations§
Source§impl TerminaGuestManagerRequest
impl TerminaGuestManagerRequest
pub fn into_launch( self, ) -> Option<(GuestConfig, ServerEnd<GuestMarker>, TerminaGuestManagerLaunchResponder)>
pub fn into_force_shutdown( self, ) -> Option<TerminaGuestManagerForceShutdownResponder>
pub fn into_connect( self, ) -> Option<(ServerEnd<GuestMarker>, TerminaGuestManagerConnectResponder)>
pub fn into_get_info(self) -> Option<TerminaGuestManagerGetInfoResponder>
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 TerminaGuestManagerRequest
impl !RefUnwindSafe for TerminaGuestManagerRequest
impl Send for TerminaGuestManagerRequest
impl Sync for TerminaGuestManagerRequest
impl Unpin for TerminaGuestManagerRequest
impl !UnwindSafe for TerminaGuestManagerRequest
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