pub struct ZirconGuestManagerProxy { /* private fields */ }
Implementations§
source§impl ZirconGuestManagerProxy
impl ZirconGuestManagerProxy
sourcepub fn new(channel: AsyncChannel) -> Self
pub fn new(channel: AsyncChannel) -> Self
Create a new Proxy for fuchsia.virtualization/ZirconGuestManager.
sourcepub fn take_event_stream(&self) -> ZirconGuestManagerEventStream
pub fn take_event_stream(&self) -> ZirconGuestManagerEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
sourcepub fn launch(
&self,
guest_config: GuestConfig,
controller: ServerEnd<GuestMarker>
) -> QueryResponseFut<GuestManagerLaunchResult>
pub fn launch( &self, guest_config: GuestConfig, controller: ServerEnd<GuestMarker> ) -> QueryResponseFut<GuestManagerLaunchResult>
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) -> QueryResponseFut<()>
pub fn force_shutdown(&self) -> QueryResponseFut<()>
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>
) -> QueryResponseFut<GuestManagerConnectResult>
pub fn connect( &self, controller: ServerEnd<GuestMarker> ) -> QueryResponseFut<GuestManagerConnectResult>
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 Clone for ZirconGuestManagerProxy
impl Clone for ZirconGuestManagerProxy
source§fn clone(&self) -> ZirconGuestManagerProxy
fn clone(&self) -> ZirconGuestManagerProxy
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ZirconGuestManagerProxy
impl Debug for ZirconGuestManagerProxy
source§impl Proxy for ZirconGuestManagerProxy
impl Proxy for ZirconGuestManagerProxy
§type Protocol = ZirconGuestManagerMarker
type Protocol = ZirconGuestManagerMarker
Proxy
controls.