pub struct TerminaGuestManagerProxy { /* private fields */ }
Implementations§
Source§impl TerminaGuestManagerProxy
impl TerminaGuestManagerProxy
Sourcepub fn new(channel: AsyncChannel) -> Self
pub fn new(channel: AsyncChannel) -> Self
Create a new Proxy for fuchsia.virtualization/TerminaGuestManager.
Sourcepub fn take_event_stream(&self) -> TerminaGuestManagerEventStream
pub fn take_event_stream(&self) -> TerminaGuestManagerEventStream
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 TerminaGuestManagerProxy
impl Clone for TerminaGuestManagerProxy
Source§fn clone(&self) -> TerminaGuestManagerProxy
fn clone(&self) -> TerminaGuestManagerProxy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for TerminaGuestManagerProxy
impl Debug for TerminaGuestManagerProxy
Source§impl Proxy for TerminaGuestManagerProxy
impl Proxy for TerminaGuestManagerProxy
Source§type Protocol = TerminaGuestManagerMarker
type Protocol = TerminaGuestManagerMarker
Proxy
controls.