Skip to main content

Kind

Enum Kind 

Source
#[non_exhaustive]
pub enum Kind {
Show 115 variants Energy, Volume, Mass, OnTime, OperatingTime, Power, VolumeFlow, MassFlow, FlowTemperature, ReturnTemperature, TemperatureDifference, ExternalTemperature, Pressure, Date, DateTime, HcaUnits, AveragingDuration, ActualityDuration, FabricationNumber, Identification, BusAddress, PlainText, AnyVif, ManufacturerSpecific, Credit, Debit, AccessNumber, Medium, Manufacturer, ParameterSetId, ModelVersion, HardwareVersion, FirmwareVersion, SoftwareVersion, CustomerLocation, Customer, AccessCodeUser, AccessCodeOperator, AccessCodeSystemOperator, AccessCodeDeveloper, Password, ErrorFlags, ErrorMask, SecurityKey, DigitalOutput, DigitalInput, BaudRate, ResponseDelay, Retry, RemoteControl, FirstStorageNumber, LastStorageNumber, StorageBlockSize, TariffDescriptor, StorageInterval, OperatorSpecific, TimePointSecond, DurationSinceReadout, TariffStart, TariffDuration, TariffPeriod, Dimensionless, WmbusContainer, TransmissionPeriod, Voltage, Current, ResetCounter, CumulationCounter, ControlSignal, DayOfWeek, WeekNumber, DayChange, ParameterActivation, SupplierInformation, DurationSinceCumulation, BatteryOperatingTime, BatteryChange, SignalLevel, DaylightSaving, ListeningWindow, RemainingBatteryLife, StopCount, ManufacturerContainer, ReactiveEnergy, ApparentEnergy, ReactivePower, ApparentPower, RelativeHumidity, PhaseVoltageVoltage, PhaseVoltageCurrent, Frequency, TemperatureLimit, CumulativeMaxPower, SelectedApplication, SubDeviceTypes, CarbonDioxide, CarbonMonoxide, VolatileOrganicCompounds, Particles(Particles), Illuminance, LuminousIntensity, Irradiance, WindSpeed, Rainfall, SoundLevel, Turbidity, Ph, Events(Event), BatteryStatus, ChamberPollution, Distance, Moisture, StatusBits(Sensor), Reserved { table: Table, code: u8, }, MissingExtension(Table),
}
Expand description

What a value is, independent of which table said so.

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

Energy

Energy (Wh, J, and from FB megawatt-hours, gigajoules, megacalories).

§

Volume

Volume (m³, ft³, US gallons).

§

Mass

Mass (kg, t).

§

OnTime

Time the meter has been switched on.

§

OperatingTime

Time the meter has been measuring.

§

Power

Power (W, J/h, MW, GJ/h).

§

VolumeFlow

Volume flow.

§

MassFlow

Mass flow.

§

FlowTemperature

Flow (supply) temperature.

§

ReturnTemperature

Return temperature.

§

TemperatureDifference

Temperature difference.

§

ExternalTemperature

External (outside) temperature.

§

Pressure

Pressure.

§

Date

A date (type G).

§

DateTime

A date and time (type F or I), or a time of day (type J).

§

HcaUnits

Units for heat cost allocator (dimensionless).

§

AveragingDuration

Averaging duration.

§

ActualityDuration

Actuality duration: time since the value was measured.

§

FabricationNumber

Fabrication number.

§

Identification

(Enhanced) identification.

§

BusAddress

Bus address.

§

PlainText

The unit is given as text (VIF 7C/FC), see Vib::plain_text.

§

AnyVif

Any VIF (7E/FE): readout selection by a master.

§

ManufacturerSpecific

Manufacturer-specific (7F/FF).

§

Credit

Credit, in the local legal currency.

§

Debit

Debit, in the local legal currency.

§

AccessNumber

Unique message identification (access number).

§

Medium

Device type, as in the header.

§

Manufacturer

Manufacturer, as in the header.

§

ParameterSetId

Parameter set identification.

§

ModelVersion

Model / version.

§

HardwareVersion

Hardware version.

§

FirmwareVersion

Metrology (firmware) version.

§

SoftwareVersion

Other software version.

§

CustomerLocation

Customer location.

§

Customer

Customer.

§

AccessCodeUser

Access code, user.

§

AccessCodeOperator

Access code, operator.

§

AccessCodeSystemOperator

Access code, system operator.

§

AccessCodeDeveloper

Access code, developer.

§

Password

Password.

§

ErrorFlags

Error flags (binary, device-specific bits).

§

ErrorMask

Error mask.

§

SecurityKey

Security key.

§

DigitalOutput

Digital output (binary).

§

DigitalInput

Digital input (binary).

§

BaudRate

Baud rate.

§

ResponseDelay

Response delay time, in bit times.

§

Retry

Retry.

§

RemoteControl

Remote control (device-specific).

§

FirstStorageNumber

First storage number for cyclic storage.

§

LastStorageNumber

Last storage number for cyclic storage.

§

StorageBlockSize

Size of a storage block.

§

TariffDescriptor

Descriptor for tariff and subunit.

§

StorageInterval

Storage interval.

§

OperatorSpecific

Operator-specific data.

§

TimePointSecond

Time point, second (0–59).

§

DurationSinceReadout

Duration since the last readout.

§

TariffStart

Start (date and time) of a tariff.

§

TariffDuration

Duration of a tariff.

§

TariffPeriod

Period of a tariff.

§

Dimensionless

Dimensionless: no VIF.

§

WmbusContainer

Data container for the wireless M-Bus protocol.

§

TransmissionPeriod

Period of nominal data transmissions.

§

Voltage

Voltage.

§

Current

Current.

§

ResetCounter

Reset counter.

§

CumulationCounter

Cumulation counter.

§

ControlSignal

Control signal.

§

DayOfWeek

Day of week.

§

WeekNumber

Week number.

§

DayChange

Time point of day change.

§

ParameterActivation

State of parameter activation.

§

SupplierInformation

Special supplier information.

§

DurationSinceCumulation

Duration since the last cumulation.

§

BatteryOperatingTime

Operating time of the battery.

§

BatteryChange

Date and time of the battery change.

§

SignalLevel

Received signal level (RSSI).

§

DaylightSaving

Daylight saving: beginning, ending, deviation (data type K).

§

ListeningWindow

Listening window management (data type L).

§

RemainingBatteryLife

Remaining battery lifetime.

§

StopCount

Number of times the meter was stopped.

§

ManufacturerContainer

Data container for a manufacturer-specific protocol.

§

ReactiveEnergy

Reactive energy.

§

ApparentEnergy

Apparent energy.

§

ReactivePower

Reactive power.

§

ApparentPower

Apparent power.

§

RelativeHumidity

Relative humidity.

§

PhaseVoltageVoltage

Phase angle between two voltages.

§

PhaseVoltageCurrent

Phase angle between voltage and current.

§

Frequency

Frequency.

§

TemperatureLimit

Cold / warm temperature limit.

§

CumulativeMaxPower

Cumulative count of maximum power.

§

SelectedApplication

Currently selected application.

§

SubDeviceTypes

List of sub-device types.

§

CarbonDioxide

Carbon dioxide content.

§

CarbonMonoxide

Carbon monoxide content.

§

VolatileOrganicCompounds

Volatile organic compounds.

§

Particles(Particles)

Particles (unspecified range, PM1, PM2.5 or PM10, see Kind::name).

§

Illuminance

Illuminance.

§

LuminousIntensity

Luminous intensity.

§

Irradiance

Irradiance (radiant flux density).

§

WindSpeed

Wind speed.

§

Rainfall

Rainfall.

§

SoundLevel

Sound level, A-weighted.

§

Turbidity

Turbidity.

§

Ph

pH.

§

Events(Event)

A counter of events of a smoke or sensor device.

§

BatteryStatus

Battery status.

§

ChamberPollution

Smoke chamber pollution level.

§

Distance

Distance.

§

Moisture

Moisture level.

§

StatusBits(Sensor)

Status bits of a sensor.

§

Reserved

A code the table reserves.

Fields

§table: Table

The table.

§code: u8

The code, extension bit cleared.

§

MissingExtension(Table)

VIF FB/FD whose table code is missing (the extension bit was clear).

Implementations§

Source§

impl Kind

Source

pub const fn name(self) -> &'static str

A short English name, e.g. "volume flow".

Trait Implementations§

Source§

impl Clone for Kind

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for Kind

Source§

impl Debug for Kind

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for Kind

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for Kind

Source§

impl Hash for Kind

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for Kind

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for Kind

Auto Trait Implementations§

§

impl Forget for Kind

§

impl Freeze for Kind

§

impl Move for Kind

§

impl RefUnwindSafe for Kind

§

impl Send for Kind

§

impl Sync for Kind

§

impl Unpin for Kind

§

impl UnsafeUnpin for Kind

§

impl UnwindSafe for Kind

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.