Skip to main content

Module value

Module value 

Source
Expand description

The values Tango devices exchange: a Value is a Buf of any element type and dimensions Tango has, and what the arguments and results of handlers convert from and into.

Structs§

DevEncoded
A value of an encoded attribute or command: octets, and the name of the format they are in, which is how a device sends what Tango has no type for, a compressed image above all. Both share the message they were decoded out of.
DevEnum
A value of an enumerated attribute: the index of its label among the labels of the attribute, see crate::dev::AttrConfig::enum_labels.

Enums§

AttrDataFormat
The layout of a Tango attribute value.
AttrDataKind
The data kind of a Tango attribute value: an element type together with its layout.
CommandDataKind
The data kind of a Tango command argument. This is the closed set of types accepted by command_inout, without any layout information (see CommandData).
EncodedPixels
The pixels of an image in one of the raw formats cppTango encodes images in, rows after rows: in the dimensions of an image, the width comes first and varies fastest, the way it does in an image attribute.
Value
Any value a Tango device exchanges, whatever its element type and dimensions: what a backend encodes and decodes, and what the arguments and results of handlers are converted from and into, with From and TryFrom.
ValueFormat
A data in any of the formats Tango has, as many dimensions as it has.

Traits§

AttrData
A type an attribute value can be, and what kind and format it is advertised as.
CommandData
A type a command argument or result can be, and what kind it is advertised as.
FromValue
A type a value converts into, failing with an Error when it holds something else: every TryFrom<Value> whose error is one, Value itself included.
IntoValue
A type that converts into a value: every Into<Value>, Value itself included, see FromValue for the way back.
TangoElement
An element type Tango has: which variant of Value holds it, and what kinds it is advertised as, see AttrData and CommandData.

Type Aliases§

Image
A two-dimensional array of values, in column-major order, see Buf.
Scalar
A single value, see Buf.
Spectrum
A one-dimensional array of values, see Buf.