Trait ModbusTCP

Source
pub trait ModbusTCP {
    // Required methods
    fn new_tcp(ip: &str, port: i32) -> Result<Modbus, Error>;
    fn tcp_accept(&mut self, socket: &mut i32) -> Result<i32, Error>;
    fn tcp_listen(&mut self, num_connection: i32) -> Result<i32, Error>;
}
Expand description

The TCP backend implements a Modbus variant used for communications over TCP/IPv4 networks. It does not require a checksum calculation as lower layer takes care of the same.

Required Methods§

Source

fn new_tcp(ip: &str, port: i32) -> Result<Modbus, Error>

Source

fn tcp_accept(&mut self, socket: &mut i32) -> Result<i32, Error>

Source

fn tcp_listen(&mut self, num_connection: i32) -> Result<i32, Error>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§