pub struct GuestSynchronousProxy { /* private fields */ }
Implementations§
Source§impl GuestSynchronousProxy
impl GuestSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
Sourcepub fn wait_for_event(
&self,
deadline: MonotonicInstant,
) -> Result<GuestEvent, Error>
pub fn wait_for_event( &self, deadline: MonotonicInstant, ) -> Result<GuestEvent, 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 get_console(
&self,
___deadline: MonotonicInstant,
) -> Result<GuestGetConsoleResult, Error>
pub fn get_console( &self, ___deadline: MonotonicInstant, ) -> Result<GuestGetConsoleResult, Error>
Get a guest console.
The details regarding what output is produced and what input is accepted are determined by each guest, but will typically be a read/write socket with a shell.
Returns error DEVICE_NOT_PRESENT if the guest was started without a console device.
Sourcepub fn get_serial(&self, ___deadline: MonotonicInstant) -> Result<Socket, Error>
pub fn get_serial(&self, ___deadline: MonotonicInstant) -> Result<Socket, Error>
Get the socket for low-level guest debug logs.
The details regarding what output is produced and what input is accepted are determined by each guest, but will typically be a read-only socket with the guest kernel’s serial logs.
Sourcepub fn get_host_vsock_endpoint(
&self,
endpoint: ServerEnd<HostVsockEndpointMarker>,
___deadline: MonotonicInstant,
) -> Result<GuestGetHostVsockEndpointResult, Error>
pub fn get_host_vsock_endpoint( &self, endpoint: ServerEnd<HostVsockEndpointMarker>, ___deadline: MonotonicInstant, ) -> Result<GuestGetHostVsockEndpointResult, Error>
Get the vsock endpoint for the guest.
This endpoint can be used to register listeners for guest initiated connections, and to initiate connections from a client. If listeners need to be registered before the guest starts so that they are immediately available, set them via the guest config instead of using this endpoint.
Returns error DEVICE_NOT_PRESENT if the guest was started without a vsock device.
Sourcepub fn get_balloon_controller(
&self,
controller: ServerEnd<BalloonControllerMarker>,
___deadline: MonotonicInstant,
) -> Result<GuestGetBalloonControllerResult, Error>
pub fn get_balloon_controller( &self, controller: ServerEnd<BalloonControllerMarker>, ___deadline: MonotonicInstant, ) -> Result<GuestGetBalloonControllerResult, Error>
Get the balloon controller endpoint for the guest.
Returns error DEVICE_NOT_PRESENT if the guest was started without a balloon device.
Sourcepub fn get_mem_controller(
&self,
controller: ServerEnd<MemControllerMarker>,
___deadline: MonotonicInstant,
) -> Result<GuestGetMemControllerResult, Error>
pub fn get_mem_controller( &self, controller: ServerEnd<MemControllerMarker>, ___deadline: MonotonicInstant, ) -> Result<GuestGetMemControllerResult, Error>
Get the mem controller endpoint for the guest.
Returns error DEVICE_NOT_PRESENT if the guest was started without a mem device.
Trait Implementations§
Source§impl Debug for GuestSynchronousProxy
impl Debug for GuestSynchronousProxy
Source§impl SynchronousProxy for GuestSynchronousProxy
impl SynchronousProxy for GuestSynchronousProxy
Source§type Proxy = GuestProxy
type Proxy = GuestProxy
Source§type Protocol = GuestMarker
type Protocol = GuestMarker
Proxy
controls.