pub struct LimiterConfig {
pub logical_name: ObisCode,
pub monitored_value: ValueDefinition,
pub threshold_active: CosemDataType,
pub threshold_normal: CosemDataType,
pub threshold_emergency: CosemDataType,
pub min_over_threshold_duration: u32,
pub min_under_threshold_duration: u32,
pub emergency_profile: EmergencyProfile,
pub emergency_profile_group_id_list: Vec<u16>,
pub emergency_profile_active: bool,
pub actions: LimiterAction,
}Expand description
Configuration structure used to build a Limiter object.
Fields§
§logical_name: ObisCodeAttribute 1: the object’s logical name (OBIS code).
monitored_value: ValueDefinitionAttribute 2: value_definition structure { class_id, logical_name, attribute_index }.
threshold_active: CosemDataTypeAttribute 3: active threshold (same type as the monitored attribute).
threshold_normal: CosemDataTypeAttribute 4: threshold used during normal operation.
threshold_emergency: CosemDataTypeAttribute 5: threshold used while an emergency profile is active.
min_over_threshold_duration: u32Attribute 6: minimal over-threshold duration in seconds.
min_under_threshold_duration: u32Attribute 7: minimal under-threshold duration in seconds.
emergency_profile: EmergencyProfileAttribute 8: emergency_profile structure { id, activation_time, duration }.
emergency_profile_group_id_list: Vec<u16>Attribute 9: array of emergency profile group ids.
emergency_profile_active: boolAttribute 10: whether an emergency profile is currently active.
actions: LimiterActionAttribute 11: action structure of over/under-threshold scripts.
Trait Implementations§
Source§impl Clone for LimiterConfig
impl Clone for LimiterConfig
Source§fn clone(&self) -> LimiterConfig
fn clone(&self) -> LimiterConfig
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 LimiterConfig
impl Debug for LimiterConfig
Source§impl<'de> Deserialize<'de> for LimiterConfig
impl<'de> Deserialize<'de> for LimiterConfig
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 Freeze for LimiterConfig
impl RefUnwindSafe for LimiterConfig
impl Send for LimiterConfig
impl Sync for LimiterConfig
impl Unpin for LimiterConfig
impl UnsafeUnpin for LimiterConfig
impl UnwindSafe for LimiterConfig
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