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, 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 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>>
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 Debug for DebianGuestManagerProxy
impl Debug for DebianGuestManagerProxy
Source§impl Proxy for DebianGuestManagerProxy
impl Proxy for DebianGuestManagerProxy
Source§type Protocol = DebianGuestManagerMarker
type Protocol = DebianGuestManagerMarker
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 DebianGuestManagerProxy
impl !RefUnwindSafe for DebianGuestManagerProxy
impl Send for DebianGuestManagerProxy
impl Sync for DebianGuestManagerProxy
impl Unpin for DebianGuestManagerProxy
impl !UnwindSafe for DebianGuestManagerProxy
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
)