pub struct LinuxManagerSynchronousProxy { /* private fields */ }
Implementations§
Source§impl LinuxManagerSynchronousProxy
impl LinuxManagerSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<LinuxManagerEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<LinuxManagerEvent, Error>
Waits until an event arrives and returns it. It is safe for other threads to make concurrent requests while waiting for an event.
Sourcepub fn start_and_get_linux_guest_info(
&self,
label: &str,
___deadline: MonotonicInstant,
) -> Result<LinuxManagerStartAndGetLinuxGuestInfoResult, Error>
pub fn start_and_get_linux_guest_info( &self, label: &str, ___deadline: MonotonicInstant, ) -> Result<LinuxManagerStartAndGetLinuxGuestInfoResult, Error>
Get Linux guest environment info.
Returns ZX_ERR_UNAVAILABLE if the Linux guest is not available.
Sourcepub fn wipe_data(
&self,
___deadline: MonotonicInstant,
) -> Result<LinuxManagerWipeDataResult, Error>
pub fn wipe_data( &self, ___deadline: MonotonicInstant, ) -> Result<LinuxManagerWipeDataResult, Error>
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 Debug for LinuxManagerSynchronousProxy
impl Debug for LinuxManagerSynchronousProxy
Source§impl SynchronousProxy for LinuxManagerSynchronousProxy
impl SynchronousProxy for LinuxManagerSynchronousProxy
Source§type Proxy = LinuxManagerProxy
type Proxy = LinuxManagerProxy
Source§type Protocol = LinuxManagerMarker
type Protocol = LinuxManagerMarker
Proxy
controls.