[][src]Enum dsmr5::OBIS

pub enum OBIS<'a> {
    Version(OctetString<'a>),
    DateTime(TST),
    EquipmentIdentifier(OctetString<'a>),
    MeterReadingTo(TariffUFixedDouble),
    MeterReadingBy(TariffUFixedDouble),
    TariffIndicator(OctetString<'a>),
    PowerDelivered(UFixedDouble),
    PowerReceived(UFixedDouble),
    PowerFailures(UFixedInteger),
    LongPowerFailures(UFixedInteger),
    PowerFailureEventLog,
    TextMessage,
    VoltageSags(LineUFixedInteger),
    VoltageSwells(LineUFixedInteger),
    InstantaneousVoltage(LineUFixedDouble),
    InstantaneousCurrent(LineUFixedInteger),
    InstantaneousActivePowerPlus(LineUFixedDouble),
    InstantaneousActivePowerNeg(LineUFixedDouble),
    SlaveDeviceType(SlaveUFixedInteger),
    SlaveEquipmentIdentifier(SlaveOctetString<'a>),
    SlaveMeterReading(SlaveTSTUFixedDouble),
}

OBIS data objects like the current power usage.

As per section 6.12 of the requirements specification.

Variants

Version(OctetString<'a>)DateTime(TST)EquipmentIdentifier(OctetString<'a>)MeterReadingTo(TariffUFixedDouble)MeterReadingBy(TariffUFixedDouble)TariffIndicator(OctetString<'a>)

Current Tariff applicable as reported by the meter. Note that the format of this string is not defined in the requirements. Check what your meter emits in practice.

PowerDelivered(UFixedDouble)PowerReceived(UFixedDouble)PowerFailures(UFixedInteger)LongPowerFailures(UFixedInteger)PowerFailureEventLogTextMessageVoltageSags(LineUFixedInteger)VoltageSwells(LineUFixedInteger)InstantaneousVoltage(LineUFixedDouble)InstantaneousCurrent(LineUFixedInteger)InstantaneousActivePowerPlus(LineUFixedDouble)InstantaneousActivePowerNeg(LineUFixedDouble)SlaveDeviceType(SlaveUFixedInteger)SlaveEquipmentIdentifier(SlaveOctetString<'a>)SlaveMeterReading(SlaveTSTUFixedDouble)

Methods

impl<'a> OBIS<'a>[src]

pub fn parse(line: &'a str) -> Result<OBIS<'a>>[src]

Trait Implementations

impl<'a> Debug for OBIS<'a>[src]

Auto Trait Implementations

impl<'a> Send for OBIS<'a>

impl<'a> Sync for OBIS<'a>

Blanket Implementations

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]