pub struct GuestManagerSynchronousProxy { /* private fields */ }
Implementations§
Source§impl GuestManagerSynchronousProxy
impl GuestManagerSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<GuestManagerEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<GuestManagerEvent, Error>
Waits until an event arrives and returns it. It is safe for other threads to make concurrent requests while waiting for an event.
Sourcepub fn launch(
&self,
guest_config: GuestConfig,
controller: ServerEnd<GuestMarker>,
___deadline: MonotonicInstant,
) -> Result<GuestManagerLaunchResult, Error>
pub fn launch( &self, guest_config: GuestConfig, controller: ServerEnd<GuestMarker>, ___deadline: MonotonicInstant, ) -> Result<GuestManagerLaunchResult, Error>
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.
Sourcepub fn force_shutdown(&self, ___deadline: MonotonicInstant) -> Result<(), Error>
pub fn force_shutdown(&self, ___deadline: MonotonicInstant) -> Result<(), Error>
Forcibly shuts down a running guest. Immediately after ForceShutdown returns, Launch can be used to launch another guest.
Sourcepub fn connect(
&self,
controller: ServerEnd<GuestMarker>,
___deadline: MonotonicInstant,
) -> Result<GuestManagerConnectResult, Error>
pub fn connect( &self, controller: ServerEnd<GuestMarker>, ___deadline: MonotonicInstant, ) -> Result<GuestManagerConnectResult, Error>
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.
Trait Implementations§
Source§impl Debug for GuestManagerSynchronousProxy
impl Debug for GuestManagerSynchronousProxy
Source§impl SynchronousProxy for GuestManagerSynchronousProxy
impl SynchronousProxy for GuestManagerSynchronousProxy
Source§type Proxy = GuestManagerProxy
type Proxy = GuestManagerProxy
Source§type Protocol = GuestManagerMarker
type Protocol = GuestManagerMarker
Proxy
controls.