pub struct ProfileGenericConfig {
pub logical_name: ObisCode,
pub version: u8,
pub buffer: Vec<Choice>,
pub capture_objects: Vec<(Arc<dyn InterfaceClass + Send + Sync>, u8)>,
pub capture_period: u32,
pub sort_method: SortMethod,
pub sort_object: Option<CaptureObjectDefinition>,
pub entries_in_use: u32,
pub profile_entries: u32,
}Expand description
Configuration structure used to build a ProfileGeneric object.
Fields§
§logical_name: ObisCodeAttribute 1: the object’s logical name (OBIS code).
version: u8Class version: 0 or 1. Version 0 additionally exposes the
get_buffer_by_range and get_buffer_by_index methods.
buffer: Vec<Choice>Attribute 2: the captured data buffer (array of entry structures).
capture_objects: Vec<(Arc<dyn InterfaceClass + Send + Sync>, u8)>Attribute 3: the objects captured into each buffer entry, paired with the captured attribute index.
capture_period: u32Attribute 4: the capturing period, in seconds (0 = event-driven).
sort_method: SortMethodAttribute 5: sort method (1 = FIFO, 2 = LIFO, 3 = largest, 4 = smallest).
sort_object: Option<CaptureObjectDefinition>Attribute 6: capture_object_definition used as the sort key.
entries_in_use: u32Attribute 7: number of entries currently stored in the buffer.
profile_entries: u32Attribute 8: maximum number of entries the buffer can hold.
Trait Implementations§
Source§impl Clone for ProfileGenericConfig
impl Clone for ProfileGenericConfig
Source§fn clone(&self) -> ProfileGenericConfig
fn clone(&self) -> ProfileGenericConfig
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 ProfileGenericConfig
impl Debug for ProfileGenericConfig
Source§impl<'de> Deserialize<'de> for ProfileGenericConfig
impl<'de> Deserialize<'de> for ProfileGenericConfig
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 ProfileGenericConfig
impl !UnwindSafe for ProfileGenericConfig
impl Freeze for ProfileGenericConfig
impl Send for ProfileGenericConfig
impl Sync for ProfileGenericConfig
impl Unpin for ProfileGenericConfig
impl UnsafeUnpin for ProfileGenericConfig
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