pub struct Meter<'a> { /* private fields */ }Expand description
Read-only object store for the commissioned simulation profile.
Implementations§
Trait Implementations§
Source§impl ObjectStore for Meter<'_>
impl ObjectStore for Meter<'_>
Source§fn get_attribute(
&self,
class: u16,
name: Obis,
attr: i8,
selection: Option<SelectiveAccess<'_>>,
w: &mut dyn Writer,
) -> StoreResult<()>
fn get_attribute( &self, class: u16, name: Obis, attr: i8, selection: Option<SelectiveAccess<'_>>, w: &mut dyn Writer, ) -> StoreResult<()>
Source§fn attribute_access(&self, class: u16, name: Obis, attr: i8) -> AttributeAccess
fn attribute_access(&self, class: u16, name: Obis, attr: i8) -> AttributeAccess
What this association may do with an attribute. Read more
§fn set_attribute(
&mut self,
_class_id: u16,
_logical_name: Obis,
_attribute_id: i8,
_selective_access: Option<SelectiveAccess<'_>>,
_value: Data<'_>,
) -> Result<(), DataAccessResult>
fn set_attribute( &mut self, _class_id: u16, _logical_name: Obis, _attribute_id: i8, _selective_access: Option<SelectiveAccess<'_>>, _value: Data<'_>, ) -> Result<(), DataAccessResult>
Write an attribute. Read more
§fn invoke_method(
&mut self,
_class_id: u16,
_logical_name: Obis,
_method_id: i8,
_parameters: Option<Data<'_>>,
_w: &mut dyn Writer,
) -> Result<bool, ActionResult>
fn invoke_method( &mut self, _class_id: u16, _logical_name: Obis, _method_id: i8, _parameters: Option<Data<'_>>, _w: &mut dyn Writer, ) -> Result<bool, ActionResult>
Invoke a method, writing any return value into
w. Read more§fn method_access(
&self,
_class_id: u16,
_logical_name: Obis,
_method_id: i8,
) -> MethodAccess
fn method_access( &self, _class_id: u16, _logical_name: Obis, _method_id: i8, ) -> MethodAccess
What this association may do with a method.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Meter<'a>
impl<'a> !Send for Meter<'a>
impl<'a> !Sync for Meter<'a>
impl<'a> !UnwindSafe for Meter<'a>
impl<'a> Freeze for Meter<'a>
impl<'a> Unpin for Meter<'a>
impl<'a> UnsafeUnpin for Meter<'a>
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