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 duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const 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 for AttributeData
impl PartialEq for AttributeData
impl StructuralPartialEq for AttributeData
Auto Trait Implementations§
impl Freeze for AttributeData
impl RefUnwindSafe for AttributeData
impl Send for AttributeData
impl Sync for AttributeData
impl Unpin for AttributeData
impl UnwindSafe for AttributeData
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more