HoldingRegisterMap

Trait HoldingRegisterMap 

Source
pub trait HoldingRegisterMap
where Self: Sized + Default,
{ // Required methods fn update_from_holding_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; fn write_to_registers<'life0, 'life1, 'async_trait>( &'life0 self, client: &'life1 mut dyn Writer, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; // Provided method fn from_holding_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 holding registers and the Self type to create and update the type instance by reading values directly from holding registers, or write the values back to holding registers.

Required Methods§

Source

fn update_from_holding_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,

Source

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

Provided Methods§

Source

fn from_holding_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§