pub trait ClientEventsProxy {
// Required methods
fn recv(
&mut self,
) -> BoxFuture<'_, Result<OpenRequest<'static>, ClientError>>;
fn send(
&mut self,
id: ClientId,
response: Result<HostResponse, ClientError>,
) -> BoxFuture<'_, Result<(), ClientError>>;
}Required Methods§
Sourcefn recv(&mut self) -> BoxFuture<'_, Result<OpenRequest<'static>, ClientError>>
fn recv(&mut self) -> BoxFuture<'_, Result<OpenRequest<'static>, ClientError>>
§Cancellation Safety
This future must be safe to cancel.
Sourcefn send(
&mut self,
id: ClientId,
response: Result<HostResponse, ClientError>,
) -> BoxFuture<'_, Result<(), ClientError>>
fn send( &mut self, id: ClientId, response: Result<HostResponse, ClientError>, ) -> BoxFuture<'_, Result<(), ClientError>>
Sends a response from the host to the client application.