Struct fidl_fuchsia_virtualization::GuestProxy
source · pub struct GuestProxy { /* private fields */ }
Implementations§
source§impl GuestProxy
impl GuestProxy
sourcepub fn take_event_stream(&self) -> GuestEventStream
pub fn take_event_stream(&self) -> GuestEventStream
Get a Stream of events from the remote end of the protocol.
§Panics
Panics if the event stream was already taken.
sourcepub fn get_console(&self) -> QueryResponseFut<GuestGetConsoleResult>
pub fn get_console(&self) -> QueryResponseFut<GuestGetConsoleResult>
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) -> QueryResponseFut<Socket>
pub fn get_serial(&self) -> QueryResponseFut<Socket>
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>
) -> QueryResponseFut<GuestGetHostVsockEndpointResult>
pub fn get_host_vsock_endpoint( &self, endpoint: ServerEnd<HostVsockEndpointMarker> ) -> QueryResponseFut<GuestGetHostVsockEndpointResult>
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>
) -> QueryResponseFut<GuestGetBalloonControllerResult>
pub fn get_balloon_controller( &self, controller: ServerEnd<BalloonControllerMarker> ) -> QueryResponseFut<GuestGetBalloonControllerResult>
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>
) -> QueryResponseFut<GuestGetMemControllerResult>
pub fn get_mem_controller( &self, controller: ServerEnd<MemControllerMarker> ) -> QueryResponseFut<GuestGetMemControllerResult>
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 Clone for GuestProxy
impl Clone for GuestProxy
source§fn clone(&self) -> GuestProxy
fn clone(&self) -> GuestProxy
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for GuestProxy
impl Debug for GuestProxy
source§impl GuestProxyInterface for GuestProxy
impl GuestProxyInterface for GuestProxy
type GetConsoleResponseFut = QueryResponseFut<Result<Socket, GuestError>>
fn get_console(&self) -> Self::GetConsoleResponseFut
type GetSerialResponseFut = QueryResponseFut<Socket>
fn get_serial(&self) -> Self::GetSerialResponseFut
type GetHostVsockEndpointResponseFut = QueryResponseFut<Result<(), GuestError>>
fn get_host_vsock_endpoint( &self, endpoint: ServerEnd<HostVsockEndpointMarker> ) -> Self::GetHostVsockEndpointResponseFut
type GetBalloonControllerResponseFut = QueryResponseFut<Result<(), GuestError>>
fn get_balloon_controller( &self, controller: ServerEnd<BalloonControllerMarker> ) -> Self::GetBalloonControllerResponseFut
type GetMemControllerResponseFut = QueryResponseFut<Result<(), GuestError>>
fn get_mem_controller( &self, controller: ServerEnd<MemControllerMarker> ) -> Self::GetMemControllerResponseFut
source§impl Proxy for GuestProxy
impl Proxy for GuestProxy
§type Protocol = GuestMarker
type Protocol = GuestMarker
Proxy
controls.