Struct plctag_async::AsyncTag

source ·
pub struct AsyncTag { /* private fields */ }
Expand description

tag entry, represents a tag in PLC controller

Implementations§

create instance of AsyncTag

Tag String Attributes

See https://github.com/libplctag/libplctag/wiki/Tag-String-Attributes for tag string attributes.

wait until created

perform read operation.

perform write operation

poll status

get tag attribute

set tag attribute

element size

element count

tag size in bytes

set tag size in bytes, returns old size

get bit value

set bit value

get value from mem, you should call read() before this operation

get value from mem, you should call read() before this operation

set value in mem, you should call write() later

perform read & returns the value

perform read & returns the value

set the value and write to PLC Controller

get raw bytes

get raw bytes. If buffer length would exceed the end of the data in the tag data buffer, an out of bounds error is returned

set raw bytes

set raw bytes. If buffer length would exceed the end of the data in the tag data buffer, an out of bounds error is returned

take the inner

Trait Implementations§

Formats the value using the given formatter. Read more

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.