pub struct CompactDataConfig {
pub logical_name: ObisCode,
pub compact_buffer: Vec<u8>,
pub capture_objects: Vec<(Arc<dyn InterfaceClass + Send + Sync>, u8)>,
pub template_id: u8,
pub template_description: Vec<u8>,
pub capture_method: u8,
}Expand description
Configuration structure used to build a CompactData object.
Fields§
§logical_name: ObisCodeAttribute 1: the object’s logical name (OBIS code).
compact_buffer: Vec<u8>Attribute 2: the compact buffer (octet-string of concatenated values).
capture_objects: Vec<(Arc<dyn InterfaceClass + Send + Sync>, u8)>Attribute 3: the objects captured into the buffer, paired with the captured attribute index.
template_id: u8Attribute 4: identifier of the template describing the buffer contents.
template_description: Vec<u8>Attribute 5: template description (octet-string of type tags).
capture_method: u8Attribute 6: capture method (see capture_method).
Trait Implementations§
Source§impl Clone for CompactDataConfig
impl Clone for CompactDataConfig
Source§fn clone(&self) -> CompactDataConfig
fn clone(&self) -> CompactDataConfig
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 CompactDataConfig
impl Debug for CompactDataConfig
Source§impl<'de> Deserialize<'de> for CompactDataConfig
impl<'de> Deserialize<'de> for CompactDataConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for CompactDataConfig
impl !UnwindSafe for CompactDataConfig
impl Freeze for CompactDataConfig
impl Send for CompactDataConfig
impl Sync for CompactDataConfig
impl Unpin for CompactDataConfig
impl UnsafeUnpin for CompactDataConfig
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