Skip to main content

SharedVmoIoServerHandler

Trait SharedVmoIoServerHandler 

Source
pub trait SharedVmoIoServerHandler<___T: Transport = Channel> {
    // Required methods
    fn transmit(
        &mut self,
        request: Request<Transmit, ___T>,
        responder: Responder<Transmit, ___T>,
    ) -> impl Future<Output = ()> + Send;
    fn receive(
        &mut self,
        request: Request<Receive, ___T>,
        responder: Responder<Receive, ___T>,
    ) -> impl Future<Output = ()> + Send;
    fn exchange(
        &mut self,
        request: Request<Exchange, ___T>,
        responder: Responder<Exchange, ___T>,
    ) -> impl Future<Output = ()> + Send;
}
Expand description

A server handler for the SharedVmoIo protocol.

See SharedVmoIo for more details.

Required Methods§

Source

fn transmit( &mut self, request: Request<Transmit, ___T>, responder: Responder<Transmit, ___T>, ) -> impl Future<Output = ()> + Send

Sends the data in buffer to the device.

Source

fn receive( &mut self, request: Request<Receive, ___T>, responder: Responder<Receive, ___T>, ) -> impl Future<Output = ()> + Send

Receives data from the device into buffer.

Source

fn exchange( &mut self, request: Request<Exchange, ___T>, responder: Responder<Exchange, ___T>, ) -> impl Future<Output = ()> + Send

Simultaneously transmits and receives data. The size fields of tx_buffer and rx_buffer must be the same.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§