pub struct AttributeDescriptor {
pub class_id: u16,
pub instance_id: ObisCode,
pub attribute_id: i8,
}Expand description
A COSEM attribute descriptor: the (class-id, instance-id, attribute-id) triple that references one attribute of one object instance. Encoded as 2 + 6 + 1 = 9 raw octets.
Fields§
§class_id: u16Interface class id of the referenced object.
instance_id: ObisCodeLogical name (OBIS) of the object instance.
attribute_id: i8Attribute index within the object.
Implementations§
Source§impl AttributeDescriptor
impl AttributeDescriptor
Trait Implementations§
Source§impl Clone for AttributeDescriptor
impl Clone for AttributeDescriptor
Source§fn clone(&self) -> AttributeDescriptor
fn clone(&self) -> AttributeDescriptor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AttributeDescriptor
impl Debug for AttributeDescriptor
Source§impl PartialEq for AttributeDescriptor
impl PartialEq for AttributeDescriptor
impl StructuralPartialEq for AttributeDescriptor
Auto Trait Implementations§
impl Freeze for AttributeDescriptor
impl RefUnwindSafe for AttributeDescriptor
impl Send for AttributeDescriptor
impl Sync for AttributeDescriptor
impl Unpin for AttributeDescriptor
impl UnsafeUnpin for AttributeDescriptor
impl UnwindSafe for AttributeDescriptor
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