Struct tango_client::types::AttributeData
source · pub struct AttributeData {
pub data: AttrValue,
pub written_data: Option<AttrValue>,
pub format: AttrDataFormat,
pub quality: AttrQuality,
pub name: String,
pub dim_x: usize,
pub dim_y: usize,
pub time_stamp: Timespec,
}
Expand description
Represents the value and other metadata of a device attribute.
Fields§
§data: AttrValue
§written_data: Option<AttrValue>
§format: AttrDataFormat
§quality: AttrQuality
§name: String
§dim_x: usize
§dim_y: usize
§time_stamp: Timespec
Implementations§
source§impl AttributeData
impl AttributeData
sourcepub fn simple(name: &str, data: AttrValue) -> AttributeData
pub fn simple(name: &str, data: AttrValue) -> AttributeData
Create a “simple” attribute data suitable for writing the attribute
name
to a given value.
Trait Implementations§
source§impl Clone for AttributeData
impl Clone for AttributeData
source§fn clone(&self) -> AttributeData
fn clone(&self) -> AttributeData
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for AttributeData
impl Debug for AttributeData
source§impl PartialEq<AttributeData> for AttributeData
impl PartialEq<AttributeData> for AttributeData
source§fn eq(&self, other: &AttributeData) -> bool
fn eq(&self, other: &AttributeData) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.