Struct modbus_client::tcp::Transport[][src]

pub struct Transport {
    tid: u16,
    uid: u8,
    stream: TcpStream,
}
Expand description

Context object which holds state for all modbus operations.

Fields

tid: u16uid: u8stream: TcpStream

Implementations

Create a new context object and connect it to addr on port port

Set the unit identifier.

Trait Implementations

Read count bits starting at address addr.

Read count input bits starting at address addr.

Read count 16bit registers starting at address addr.

Read count 16bit input registers starting at address addr.

Write a single coil (bit) to address addr.

Write a single 16bit register to address addr.

Write a multiple coils (bits) starting at address addr.

Write a multiple 16bit registers starting at address addr.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.