snap7-server 0.1.2

Async Rust S7 PLC simulator/server for testing and development
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use snap7_client::proto::ProtoError;

pub type Result<T> = std::result::Result<T, Error>;

#[derive(Debug, thiserror::Error)]
pub enum Error {
    #[error(transparent)]
    Proto(#[from] ProtoError),
    #[error(transparent)]
    Io(#[from] std::io::Error),
    #[error("negotiation failed")]
    NegotiationFailed,
}