Struct tokio_modbus::Server
[−]
[src]
pub struct Server { /* fields omitted */ }
A multithreaded Modbus server.
Methods
impl Server
[src]
pub fn new_tcp(addr: SocketAddr) -> Server
[src]
Create a new Modbus TCP server instance.
pub fn serve<S>(&self, service: S) where
S: NewService + Send + Sync + 'static,
S::Request: From<Request>,
S::Response: Into<Response>,
S::Error: Into<Error>,
S::Instance: Send + Sync + 'static,
[src]
S: NewService + Send + Sync + 'static,
S::Request: From<Request>,
S::Response: Into<Response>,
S::Error: Into<Error>,
S::Instance: Send + Sync + 'static,