Enum dsmr5::OBIS[][src]

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)
PowerFailureEventLog
TextMessage
VoltageSags(LineUFixedInteger)
VoltageSwells(LineUFixedInteger)
InstantaneousVoltage(LineUFixedDouble)
InstantaneousCurrent(LineUFixedInteger)
InstantaneousActivePowerPlus(LineUFixedDouble)
InstantaneousActivePowerNeg(LineUFixedDouble)
SlaveDeviceType(SlaveUFixedInteger)
SlaveEquipmentIdentifier(SlaveOctetString<'a>)
SlaveMeterReading(SlaveTSTUFixedDouble)

Implementations

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>[src]

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

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

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.