pub struct LinuxManagerProxy { /* private fields */ }
Implementations§
Source§impl LinuxManagerProxy
impl LinuxManagerProxy
Sourcepub fn new(channel: AsyncChannel) -> Self
pub fn new(channel: AsyncChannel) -> Self
Create a new Proxy for fuchsia.virtualization/LinuxManager.
Sourcepub fn take_event_stream(&self) -> LinuxManagerEventStream
pub fn take_event_stream(&self) -> LinuxManagerEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
Sourcepub fn start_and_get_linux_guest_info(
&self,
label: &str,
) -> QueryResponseFut<LinuxManagerStartAndGetLinuxGuestInfoResult, DefaultFuchsiaResourceDialect>
pub fn start_and_get_linux_guest_info( &self, label: &str, ) -> QueryResponseFut<LinuxManagerStartAndGetLinuxGuestInfoResult, DefaultFuchsiaResourceDialect>
Get Linux guest environment info.
Returns ZX_ERR_UNAVAILABLE if the Linux guest is not available.
Sourcepub fn wipe_data(
&self,
) -> QueryResponseFut<LinuxManagerWipeDataResult, DefaultFuchsiaResourceDialect>
pub fn wipe_data( &self, ) -> QueryResponseFut<LinuxManagerWipeDataResult, DefaultFuchsiaResourceDialect>
Clears the stateful data. This includes any installed containers and any user data they may contain.
Returns ZX_ERR_BAD_STATE if this is called while the VM is running. Returns ZX_ERR_IO if there was an IO failure while performing the operation.
Sourcepub fn graceful_shutdown(&self) -> Result<(), Error>
pub fn graceful_shutdown(&self) -> Result<(), Error>
Attempts to gracefully shut down a running guest. The caller must ensure that the guest has actually stopped (such as by waiting on a Guest client PEER_CLOSED signal and checking the epitaph) before attempting to launch another guest.
On a clean shutdown the Guest client will contain a ZX_OK epitaph, and on an unexpected shutdown the client will contain a ZX_ERR_INTERNAL epitaph (or no epitaph if there was a component crash).
Trait Implementations§
Source§impl Clone for LinuxManagerProxy
impl Clone for LinuxManagerProxy
Source§fn clone(&self) -> LinuxManagerProxy
fn clone(&self) -> LinuxManagerProxy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for LinuxManagerProxy
impl Debug for LinuxManagerProxy
Source§impl LinuxManagerProxyInterface for LinuxManagerProxy
impl LinuxManagerProxyInterface for LinuxManagerProxy
type StartAndGetLinuxGuestInfoResponseFut = QueryResponseFut<Result<LinuxGuestInfo, i32>>
type WipeDataResponseFut = QueryResponseFut<Result<(), i32>>
fn start_and_get_linux_guest_info( &self, label: &str, ) -> Self::StartAndGetLinuxGuestInfoResponseFut
fn wipe_data(&self) -> Self::WipeDataResponseFut
fn graceful_shutdown(&self) -> Result<(), Error>
Source§impl Proxy for LinuxManagerProxy
impl Proxy for LinuxManagerProxy
Source§type Protocol = LinuxManagerMarker
type Protocol = LinuxManagerMarker
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 LinuxManagerProxy
impl !RefUnwindSafe for LinuxManagerProxy
impl Send for LinuxManagerProxy
impl Sync for LinuxManagerProxy
impl Unpin for LinuxManagerProxy
impl !UnwindSafe for LinuxManagerProxy
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
)