pub struct SyncConnector<T: Client, F: FnMut(Slave) -> Result<T, Error> + Send + Sync> { /* private fields */ }
Expand description
Establish a connection using a factory function.
In practice, the function needs to be 'static
to be able to use this to
obtain a tokio_modbus::client::Context
.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T, F> Freeze for SyncConnector<T, F>where
F: Freeze,
impl<T, F> RefUnwindSafe for SyncConnector<T, F>where
F: RefUnwindSafe,
impl<T, F> Send for SyncConnector<T, F>
impl<T, F> Sync for SyncConnector<T, F>
impl<T, F> Unpin for SyncConnector<T, F>where
F: Unpin,
impl<T, F> UnwindSafe for SyncConnector<T, F>where
F: 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