pub struct DebianGuestManagerProxy { /* private fields */ }
Implementations§
source§impl DebianGuestManagerProxy
impl DebianGuestManagerProxy
sourcepub fn new(channel: AsyncChannel) -> Self
pub fn new(channel: AsyncChannel) -> Self
Create a new Proxy for fuchsia.virtualization/DebianGuestManager.
sourcepub fn take_event_stream(&self) -> DebianGuestManagerEventStream
pub fn take_event_stream(&self) -> DebianGuestManagerEventStream
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 DebianGuestManagerProxy
impl Clone for DebianGuestManagerProxy
source§fn clone(&self) -> DebianGuestManagerProxy
fn clone(&self) -> DebianGuestManagerProxy
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl DebianGuestManagerProxyInterface for DebianGuestManagerProxy
impl DebianGuestManagerProxyInterface for DebianGuestManagerProxy
type LaunchResponseFut = QueryResponseFut<Result<(), GuestManagerError>>
fn launch( &self, guest_config: GuestConfig, controller: ServerEnd<GuestMarker> ) -> Self::LaunchResponseFut
type ForceShutdownResponseFut = QueryResponseFut<()>
fn force_shutdown(&self) -> Self::ForceShutdownResponseFut
type ConnectResponseFut = QueryResponseFut<Result<(), GuestManagerError>>
fn connect( &self, controller: ServerEnd<GuestMarker> ) -> Self::ConnectResponseFut
type GetInfoResponseFut = QueryResponseFut<GuestInfo>
fn get_info(&self) -> Self::GetInfoResponseFut
source§impl Debug for DebianGuestManagerProxy
impl Debug for DebianGuestManagerProxy
source§impl Proxy for DebianGuestManagerProxy
impl Proxy for DebianGuestManagerProxy
§type Protocol = DebianGuestManagerMarker
type Protocol = DebianGuestManagerMarker
Proxy
controls.