pub struct Limiter {
logical_name: ObisCode,
monitored_value: ValueDefinition,
threshold_active: CosemDataType,
threshold_normal: CosemDataType,
threshold_emergency: CosemDataType,
min_over_threshold_duration: u32,
min_under_threshold_duration: u32,
emergency_profile: EmergencyProfile,
emergency_profile_group_id_list: Vec<u16>,
emergency_profile_active: bool,
actions: LimiterAction,
}Expand description
Limiter interface class (class_id = 71, version = 0) per IEC 62056-6-2
§4.5.9. Monitors a value attribute of another object and triggers actions
when it crosses the active threshold for at least the minimal duration.
This class defines no specific methods.
Fields§
§logical_name: ObisCode§monitored_value: ValueDefinition§threshold_active: CosemDataType§threshold_normal: CosemDataType§threshold_emergency: CosemDataType§min_over_threshold_duration: u32§min_under_threshold_duration: u32§emergency_profile: EmergencyProfile§emergency_profile_group_id_list: Vec<u16>§emergency_profile_active: bool§actions: LimiterActionImplementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Limiter
impl<'de> Deserialize<'de> for Limiter
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
Source§impl InterfaceClass for Limiter
impl InterfaceClass for Limiter
Source§fn logical_name(&self) -> &ObisCode
fn logical_name(&self) -> &ObisCode
Returns the object’s logical name (OBIS code).
Source§fn attributes(&self) -> Vec<(u8, CosemDataType)>
fn attributes(&self) -> Vec<(u8, CosemDataType)>
Returns the class attributes as
(attribute_id, value) pairs.Source§fn serialize_ber(&self, buf: &mut Vec<u8>) -> Result<(), BerError>
fn serialize_ber(&self, buf: &mut Vec<u8>) -> Result<(), BerError>
Serializes the object into BER. Read more
Source§fn deserialize_ber(&mut self, data: &[u8]) -> Result<(), BerError>
fn deserialize_ber(&mut self, data: &[u8]) -> Result<(), BerError>
Deserializes the object from BER data. Read more
Source§fn set_attribute(
&mut self,
attribute_id: u8,
value: CosemDataType,
) -> Result<(), String>
fn set_attribute( &mut self, attribute_id: u8, value: CosemDataType, ) -> Result<(), String>
Writes the value of a writable attribute. The default implementation
rejects the write; classes with writable attributes override it. Read more
Source§fn invoke_method(
&mut self,
method_id: u8,
_params: Option<CosemDataType>,
) -> Result<CosemDataType, String>
fn invoke_method( &mut self, method_id: u8, _params: Option<CosemDataType>, ) -> Result<CosemDataType, String>
Invokes the object method with the given id. Read more
Auto Trait Implementations§
impl Freeze for Limiter
impl RefUnwindSafe for Limiter
impl Send for Limiter
impl Sync for Limiter
impl Unpin for Limiter
impl UnsafeUnpin for Limiter
impl UnwindSafe for Limiter
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