pub struct TerminaGuestManagerSynchronousProxy { /* private fields */ }
Implementations§
Source§impl TerminaGuestManagerSynchronousProxy
impl TerminaGuestManagerSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<TerminaGuestManagerEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<TerminaGuestManagerEvent, 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 SynchronousProxy for TerminaGuestManagerSynchronousProxy
impl SynchronousProxy for TerminaGuestManagerSynchronousProxy
Source§type Proxy = TerminaGuestManagerProxy
type Proxy = TerminaGuestManagerProxy
Source§type Protocol = TerminaGuestManagerMarker
type Protocol = TerminaGuestManagerMarker
Proxy
controls.