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, 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 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
Source§type Protocol = ZirconGuestManagerMarker
type Protocol = ZirconGuestManagerMarker
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>
Source§impl ZirconGuestManagerProxyInterface for ZirconGuestManagerProxy
impl ZirconGuestManagerProxyInterface for ZirconGuestManagerProxy
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
Auto Trait Implementations§
impl Freeze for ZirconGuestManagerProxy
impl !RefUnwindSafe for ZirconGuestManagerProxy
impl Send for ZirconGuestManagerProxy
impl Sync for ZirconGuestManagerProxy
impl Unpin for ZirconGuestManagerProxy
impl !UnwindSafe for ZirconGuestManagerProxy
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
)