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, DefaultFuchsiaResourceDialect>
pub fn get_console( &self, ) -> QueryResponseFut<GuestGetConsoleResult, DefaultFuchsiaResourceDialect>
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, DefaultFuchsiaResourceDialect>
pub fn get_serial( &self, ) -> QueryResponseFut<Socket, DefaultFuchsiaResourceDialect>
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, DefaultFuchsiaResourceDialect>
pub fn get_host_vsock_endpoint( &self, endpoint: ServerEnd<HostVsockEndpointMarker>, ) -> QueryResponseFut<GuestGetHostVsockEndpointResult, DefaultFuchsiaResourceDialect>
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, DefaultFuchsiaResourceDialect>
pub fn get_balloon_controller( &self, controller: ServerEnd<BalloonControllerMarker>, ) -> QueryResponseFut<GuestGetBalloonControllerResult, DefaultFuchsiaResourceDialect>
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, DefaultFuchsiaResourceDialect>
pub fn get_mem_controller( &self, controller: ServerEnd<MemControllerMarker>, ) -> QueryResponseFut<GuestGetMemControllerResult, DefaultFuchsiaResourceDialect>
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>>
type GetSerialResponseFut = QueryResponseFut<Socket>
type GetHostVsockEndpointResponseFut = QueryResponseFut<Result<(), GuestError>>
type GetBalloonControllerResponseFut = QueryResponseFut<Result<(), GuestError>>
type GetMemControllerResponseFut = QueryResponseFut<Result<(), GuestError>>
fn get_console(&self) -> Self::GetConsoleResponseFut
fn get_serial(&self) -> Self::GetSerialResponseFut
fn get_host_vsock_endpoint( &self, endpoint: ServerEnd<HostVsockEndpointMarker>, ) -> Self::GetHostVsockEndpointResponseFut
fn get_balloon_controller( &self, controller: ServerEnd<BalloonControllerMarker>, ) -> Self::GetBalloonControllerResponseFut
fn get_mem_controller( &self, controller: ServerEnd<MemControllerMarker>, ) -> Self::GetMemControllerResponseFut
Source§impl Proxy for GuestProxy
impl Proxy for GuestProxy
Source§type Protocol = GuestMarker
type Protocol = GuestMarker
Proxy
controls.