pub trait AttributeReads: SealedAttributeReads {
type Values;
}Expand description
Lists the Attribute reads of one Client::get_attributes call as a tuple.
Since 1.31.0.
Tuples of 1 to 12 AttributeRead values implement this trait.
Each tuple element is usually a reference, such as &ORDER_STATUS or &NOTES.instance("n1").
The call returns a tuple of the same arity whose elements are Option<T>.
Pass a one-element tuple, such as (&ORDER_STATUS,), to read one Attribute.
Pass more than 12 reads by making several calls.
The empty tuple () does not implement this trait, so a call needs at least one read.
Applications cannot implement this trait.
See Client::get_attributes for an example.
Required Associated Types§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".