InputRegisterMap

Trait InputRegisterMap 

Source
pub trait InputRegisterMap
where Self: Sized + Default,
{ // Required method fn update_from_input_registers<'life0, 'life1, 'async_trait>( &'life0 mut self, client: &'life1 mut dyn Reader, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; // Provided method fn from_input_registers<'life0, 'async_trait>( client: &'life0 mut dyn Reader, ) -> Pin<Box<dyn Future<Output = Result<Self>> + Send + 'async_trait>> where Self: Send + 'async_trait, 'life0: 'async_trait { ... } }
Expand description

Define mapping between Modbus input registers and the Self type to create and update the type instance by reading values directly from input registers

Required Methods§

Source

fn update_from_input_registers<'life0, 'life1, 'async_trait>( &'life0 mut self, client: &'life1 mut dyn Reader, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Provided Methods§

Source

fn from_input_registers<'life0, 'async_trait>( client: &'life0 mut dyn Reader, ) -> Pin<Box<dyn Future<Output = Result<Self>> + Send + 'async_trait>>
where Self: Send + 'async_trait, 'life0: 'async_trait,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§