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.Source§fn from_channel(inner: AsyncChannel) -> Self
fn from_channel(inner: AsyncChannel) -> Self
Source§fn into_channel(self) -> Result<AsyncChannel, Self>
fn into_channel(self) -> Result<AsyncChannel, Self>
Source§fn as_channel(&self) -> &AsyncChannel
fn as_channel(&self) -> &AsyncChannel
§fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
fn into_client_end(self) -> Result<ClientEnd<Self::Protocol>, Self>
Auto Trait Implementations§
impl Freeze for GuestManagerProxy
impl !RefUnwindSafe for GuestManagerProxy
impl Send for GuestManagerProxy
impl Sync for GuestManagerProxy
impl Unpin for GuestManagerProxy
impl !UnwindSafe for GuestManagerProxy
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)