Struct modbus_mapping::simulator::Simulator
source · pub struct Simulator<D: Device>(pub Arc<Mutex<D>>);Expand description
Wrapper around Device needed because of tokio_modbus::server::Service.
Tuple Fields§
§0: Arc<Mutex<D>>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<D> RefUnwindSafe for Simulator<D>
impl<D> Send for Simulator<D>where
D: Send,
impl<D> Sync for Simulator<D>where
D: Send,
impl<D> Unpin for Simulator<D>
impl<D> UnwindSafe for Simulator<D>
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