Skip to main content

AttributeReader

Trait AttributeReader 

Source
pub trait AttributeReader {
    type Error;

    // Required methods
    fn meter_id(&self) -> &str;
    fn get(
        &mut self,
        attribute: AttributeDescriptor,
        selection: Option<SelectiveAccess<'_>>,
    ) -> Result<Data<'_>, Self::Error>;
}
Expand description

An authorized meter association with exclusive access between GETs. The host bounds each response and its deadline and validates request correlation.

Required Associated Types§

Required Methods§

Source

fn meter_id(&self) -> &str

Identity bound to this association by the caller at commissioning.

Source

fn get( &mut self, attribute: AttributeDescriptor, selection: Option<SelectiveAccess<'_>>, ) -> Result<Data<'_>, Self::Error>

Read exactly this attribute and selection. Propagate transport and meter refusals.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T: Transport, P: CryptoProvider, const N: usize> AttributeReader for BlockingReader<'_, T, P, N>