pub struct S7Client { /* private fields */ }Implementations§
source§impl S7Client
impl S7Client
pub async fn connect(options: Options) -> Result<Self, Error>
pub async fn write_db_bytes( &mut self, db_number: u16, byte_addr: u16, data: &[u8] ) -> Result<Vec<DataItemWriteResponse>, Error>
pub async fn write_db_bit( &mut self, db_number: u16, byte_addr: u16, bit_addr: u8, data: bool ) -> Result<Vec<DataItemWriteResponse>, Error>
pub async fn read( &mut self, areas: Vec<Area> ) -> Result<Vec<DataItemVal>, Error>
Auto Trait Implementations§
impl RefUnwindSafe for S7Client
impl Send for S7Client
impl Sync for S7Client
impl Unpin for S7Client
impl UnwindSafe for S7Client
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