Skip to main content

Keys

Trait Keys 

Source
pub trait Keys {
    // Required method
    fn key(&self, meter: &Address) -> Option<&Key>;
}
Available on crate feature oms only.
Expand description

Where the library gets the key for a meter.

Required Methods§

Source

fn key(&self, meter: &Address) -> Option<&Key>

The key for meter, or None.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl Keys for [(Address, Key)]

A key per meter, matched on manufacturer and identification number (version and device type are not part of a key sheet, and a gateway’s long header may differ).

Source§

fn key(&self, meter: &Address) -> Option<&Key>

Source§

impl<K: Keys + ?Sized> Keys for &K

Source§

fn key(&self, meter: &Address) -> Option<&Key>

Source§

impl<const N: usize> Keys for [(Address, Key); N]

Source§

fn key(&self, meter: &Address) -> Option<&Key>

Implementors§

Source§

impl Keys for Key

One key for every meter: for a single meter, or a test.