pub trait Client: SlaveContext + Send + Debug {
    // Required method
    fn call<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        request: Request<'life1>
    ) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

Transport independent asynchronous client trait

Required Methods§

source

fn call<'life0, 'life1, 'async_trait>( &'life0 mut self, request: Request<'life1> ) -> Pin<Box<dyn Future<Output = Result<Response, Error>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Invoke a Modbus function

Trait Implementations§

source§

impl From<Context> for Box<dyn Client>

source§

fn from(val: Context) -> Self

Converts to this type from the input type.

Implementors§