Struct modbus_mapping::simulator::DataStore
source · pub struct DataStore<I, H> { /* private fields */ }Expand description
Modbus data store to be used in IO operations for the simulation purposes.
Implementations§
source§impl<I, H> DataStore<I, H>where
I: InputRegisterModel,
H: HoldingRegisterModel,
impl<I, H> DataStore<I, H>where
I: InputRegisterModel,
H: HoldingRegisterModel,
sourcepub fn service_call(
&mut self,
holding_register_model: &mut H,
req: Request<'static>
) -> Ready<Result<Response, Error>>
pub fn service_call( &mut self, holding_register_model: &mut H, req: Request<'static> ) -> Ready<Result<Response, Error>>
Method to be used to implement tokio_modbus::server::Service.
Trait Implementations§
Auto Trait Implementations§
impl<I, H> RefUnwindSafe for DataStore<I, H>where
H: RefUnwindSafe,
I: RefUnwindSafe,
impl<I, H> Send for DataStore<I, H>
impl<I, H> Sync for DataStore<I, H>
impl<I, H> Unpin for DataStore<I, H>
impl<I, H> UnwindSafe for DataStore<I, H>where
H: UnwindSafe,
I: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more