pub struct GuestManagerProxy { /* private fields */ }
Implementations§
Source§impl GuestManagerProxy
impl GuestManagerProxy
Sourcepub fn new(channel: AsyncChannel) -> Self
pub fn new(channel: AsyncChannel) -> Self
Create a new Proxy for fuchsia.virtualization/GuestManager.
Sourcepub fn take_event_stream(&self) -> GuestManagerEventStream
pub fn take_event_stream(&self) -> GuestManagerEventStream
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, DefaultFuchsiaResourceDialect>
pub fn launch( &self, guest_config: GuestConfig, controller: ServerEnd<GuestMarker>, ) -> QueryResponseFut<GuestManagerLaunchResult, DefaultFuchsiaResourceDialect>
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<(), DefaultFuchsiaResourceDialect>
pub fn force_shutdown( &self, ) -> QueryResponseFut<(), DefaultFuchsiaResourceDialect>
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, DefaultFuchsiaResourceDialect>
pub fn connect( &self, controller: ServerEnd<GuestMarker>, ) -> QueryResponseFut<GuestManagerConnectResult, DefaultFuchsiaResourceDialect>
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 GuestManagerProxy
impl Clone for GuestManagerProxy
Source§fn clone(&self) -> GuestManagerProxy
fn clone(&self) -> GuestManagerProxy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for GuestManagerProxy
impl Debug for GuestManagerProxy
Source§impl GuestManagerProxyInterface for GuestManagerProxy
impl GuestManagerProxyInterface for GuestManagerProxy
type LaunchResponseFut = QueryResponseFut<Result<(), GuestManagerError>>
type ForceShutdownResponseFut = QueryResponseFut<()>
type ConnectResponseFut = QueryResponseFut<Result<(), GuestManagerError>>
type GetInfoResponseFut = QueryResponseFut<GuestInfo>
fn launch( &self, guest_config: GuestConfig, controller: ServerEnd<GuestMarker>, ) -> Self::LaunchResponseFut
fn force_shutdown(&self) -> Self::ForceShutdownResponseFut
fn connect( &self, controller: ServerEnd<GuestMarker>, ) -> Self::ConnectResponseFut
fn get_info(&self) -> Self::GetInfoResponseFut
Source§impl Proxy for GuestManagerProxy
impl Proxy for GuestManagerProxy
Source§type Protocol = GuestManagerMarker
type Protocol = GuestManagerMarker
Proxy
controls.