pub struct S7PlusClient<T: AsyncRead + AsyncWrite + Unpin + Send> { /* private fields */ }Expand description
A client for S7CommPlus (S7-1200/1500 “integrity mode”) communication.
Implementations§
Source§impl<T: AsyncRead + AsyncWrite + Unpin + Send> S7PlusClient<T>
impl<T: AsyncRead + AsyncWrite + Unpin + Send> S7PlusClient<T>
Source§impl S7PlusClient<TcpTransport>
impl S7PlusClient<TcpTransport>
Sourcepub async fn connect(
addr: SocketAddr,
params: ConnectParams,
) -> Result<Self, Error>
pub async fn connect( addr: SocketAddr, params: ConnectParams, ) -> Result<Self, Error>
Connect to a PLC at addr using the S7CommPlus CreateObject handshake.
Auto Trait Implementations§
impl<T> !Freeze for S7PlusClient<T>
impl<T> !RefUnwindSafe for S7PlusClient<T>
impl<T> Send for S7PlusClient<T>
impl<T> Sync for S7PlusClient<T>
impl<T> Unpin for S7PlusClient<T>
impl<T> UnsafeUnpin for S7PlusClient<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for S7PlusClient<T>where
T: 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