ClientEventsProxy

Trait ClientEventsProxy 

Source
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§

Source

fn recv(&mut self) -> BoxFuture<'_, Result<OpenRequest<'static>, ClientError>>

§Cancellation Safety

This future must be safe to cancel.

Source

fn send( &mut self, id: ClientId, response: Result<HostResponse, ClientError>, ) -> BoxFuture<'_, Result<(), ClientError>>

Sends a response from the host to the client application.

Implementors§

Source§

impl<R> ClientEventsProxy for MemoryEventsGen<R>
where R: RandomEventGenerator + Send,

Source§

impl<R> ClientEventsProxy for NetworkEventGenerator<R>
where R: RandomEventGenerator + Send + Clone,