Skip to main content

EngineeringUnits

Struct EngineeringUnits 

Source
pub struct EngineeringUnits(/* private fields */);
Expand description

BACnet engineering units (Clause 21).

ASHRAE owns 0-255 and 47808-49999. Vendor units go in 256-47807 or 50000-65535, following the extension rules of Clause 23.

Implementations§

Source§

impl EngineeringUnits

Source

pub const METERS_PER_SECOND_PER_SECOND: Self

Wire value 166.

Source

pub const SQUARE_METERS: Self

Wire value 0.

Source

pub const SQUARE_CENTIMETERS: Self

Wire value 116.

Source

pub const SQUARE_FEET: Self

Wire value 1.

Source

pub const SQUARE_INCHES: Self

Wire value 115.

Source

pub const CURRENCY1: Self

Wire value 105.

Source

pub const CURRENCY2: Self

Wire value 106.

Source

pub const CURRENCY3: Self

Wire value 107.

Source

pub const CURRENCY4: Self

Wire value 108.

Source

pub const CURRENCY5: Self

Wire value 109.

Source

pub const CURRENCY6: Self

Wire value 110.

Source

pub const CURRENCY7: Self

Wire value 111.

Source

pub const CURRENCY8: Self

Wire value 112.

Source

pub const CURRENCY9: Self

Wire value 113.

Source

pub const CURRENCY10: Self

Wire value 114.

Source

pub const MILLIAMPERES: Self

Wire value 2.

Source

pub const AMPERES: Self

Wire value 3.

Source

pub const AMPERES_PER_METER: Self

Wire value 167.

Source

pub const AMPERES_PER_SQUARE_METER: Self

Wire value 168.

Source

pub const AMPERE_SQUARE_METERS: Self

Wire value 169.

Source

pub const DECIBELS: Self

Wire value 199.

Source

pub const DECIBELS_MILLIVOLT: Self

Wire value 200.

Source

pub const DECIBELS_VOLT: Self

Wire value 201.

Source

pub const FARADS: Self

Wire value 170.

Source

pub const HENRYS: Self

Wire value 171.

Source

pub const OHMS: Self

Wire value 4.

Source

pub const OHM_METER_SQUARED_PER_METER: Self

Wire value 237.

Source

pub const OHM_METERS: Self

Wire value 172.

Source

pub const MILLIOHMS: Self

Wire value 145.

Source

pub const KILOHMS: Self

Wire value 122.

Source

pub const MEGOHMS: Self

Wire value 123.

Source

pub const MICROSIEMENS: Self

Wire value 190.

Source

pub const MILLISIEMENS: Self

Wire value 202.

Source

pub const SIEMENS: Self

Wire value 173.

Source

pub const SIEMENS_PER_METER: Self

Wire value 174.

Source

pub const TESLAS: Self

Wire value 175.

Source

pub const VOLTS: Self

Wire value 5.

Source

pub const MILLIVOLTS: Self

Wire value 124.

Source

pub const KILOVOLTS: Self

Wire value 6.

Source

pub const MEGAVOLTS: Self

Wire value 7.

Source

pub const VOLT_AMPERES: Self

Wire value 8.

Source

pub const KILOVOLT_AMPERES: Self

Wire value 9.

Source

pub const MEGAVOLT_AMPERES: Self

Wire value 10.

Source

pub const VOLT_AMPERES_REACTIVE: Self

Wire value 11.

Source

pub const KILOVOLT_AMPERES_REACTIVE: Self

Wire value 12.

Source

pub const MEGAVOLT_AMPERES_REACTIVE: Self

Wire value 13.

Source

pub const VOLTS_PER_DEGREE_KELVIN: Self

Wire value 176.

Source

pub const VOLTS_PER_METER: Self

Wire value 177.

Source

pub const DEGREES_PHASE: Self

Wire value 14.

Source

pub const POWER_FACTOR: Self

Wire value 15.

Source

pub const WEBERS: Self

Wire value 178.

Source

pub const AMPERE_SECONDS: Self

Wire value 238.

Source

pub const VOLT_AMPERE_HOURS: Self

Wire value 239.

Source

pub const KILOVOLT_AMPERE_HOURS: Self

Wire value 240.

Source

pub const MEGAVOLT_AMPERE_HOURS: Self

Wire value 241.

Source

pub const VOLT_AMPERE_HOURS_REACTIVE: Self

Wire value 242.

Source

pub const KILOVOLT_AMPERE_HOURS_REACTIVE: Self

Wire value 243.

Source

pub const MEGAVOLT_AMPERE_HOURS_REACTIVE: Self

Wire value 244.

Source

pub const VOLT_SQUARE_HOURS: Self

Wire value 245.

Source

pub const AMPERE_SQUARE_HOURS: Self

Wire value 246.

Source

pub const JOULES: Self

Wire value 16.

Source

pub const KILOJOULES: Self

Wire value 17.

Source

pub const KILOJOULES_PER_KILOGRAM: Self

Wire value 125.

Source

pub const MEGAJOULES: Self

Wire value 126.

Source

pub const WATT_HOURS: Self

Wire value 18.

Source

pub const KILOWATT_HOURS: Self

Wire value 19.

Source

pub const MEGAWATT_HOURS: Self

Wire value 146.

Source

pub const WATT_HOURS_REACTIVE: Self

Wire value 203.

Source

pub const KILOWATT_HOURS_REACTIVE: Self

Wire value 204.

Source

pub const MEGAWATT_HOURS_REACTIVE: Self

Wire value 205.

Source

pub const BTUS: Self

Wire value 20.

Source

pub const KILO_BTUS: Self

Wire value 147.

Source

pub const MEGA_BTUS: Self

Wire value 148.

Source

pub const THERMS: Self

Wire value 21.

Source

pub const TON_HOURS: Self

Wire value 22.

Source

pub const JOULES_PER_KILOGRAM_DRY_AIR: Self

Wire value 23.

Source

pub const KILOJOULES_PER_KILOGRAM_DRY_AIR: Self

Wire value 149.

Source

pub const MEGAJOULES_PER_KILOGRAM_DRY_AIR: Self

Wire value 150.

Source

pub const BTUS_PER_POUND_DRY_AIR: Self

Wire value 24.

Source

pub const BTUS_PER_POUND: Self

Wire value 117.

Source

pub const JOULES_PER_DEGREE_KELVIN: Self

Wire value 127.

Source

pub const KILOJOULES_PER_DEGREE_KELVIN: Self

Wire value 151.

Source

pub const MEGAJOULES_PER_DEGREE_KELVIN: Self

Wire value 152.

Source

pub const JOULES_PER_KILOGRAM_DEGREE_KELVIN: Self

Wire value 128.

Source

pub const NEWTON: Self

Wire value 153.

Source

pub const CYCLES_PER_HOUR: Self

Wire value 25.

Source

pub const CYCLES_PER_MINUTE: Self

Wire value 26.

Source

pub const HERTZ: Self

Wire value 27.

Source

pub const KILOHERTZ: Self

Wire value 129.

Source

pub const MEGAHERTZ: Self

Wire value 130.

Source

pub const PER_HOUR: Self

Wire value 131.

Source

pub const GRAMS_OF_WATER_PER_KILOGRAM_DRY_AIR: Self

Wire value 28.

Source

pub const PERCENT_RELATIVE_HUMIDITY: Self

Wire value 29.

Source

pub const MICROMETERS: Self

Wire value 194.

Source

pub const MILLIMETERS: Self

Wire value 30.

Source

pub const CENTIMETERS: Self

Wire value 118.

Source

pub const KILOMETERS: Self

Wire value 193.

Source

pub const METERS: Self

Wire value 31.

Source

pub const INCHES: Self

Wire value 32.

Source

pub const FEET: Self

Wire value 33.

Source

pub const CANDELAS: Self

Wire value 179.

Source

pub const CANDELAS_PER_SQUARE_METER: Self

Wire value 180.

Source

pub const WATTS_PER_SQUARE_FOOT: Self

Wire value 34.

Source

pub const WATTS_PER_SQUARE_METER: Self

Wire value 35.

Source

pub const LUMENS: Self

Wire value 36.

Source

pub const LUXES: Self

Wire value 37.

Source

pub const FOOT_CANDLES: Self

Wire value 38.

Source

pub const MILLIGRAMS: Self

Wire value 196.

Source

pub const GRAMS: Self

Wire value 195.

Source

pub const KILOGRAMS: Self

Wire value 39.

Source

pub const POUNDS_MASS: Self

Wire value 40.

Source

pub const TONS: Self

Wire value 41.

Source

pub const GRAMS_PER_SECOND: Self

Wire value 154.

Source

pub const GRAMS_PER_MINUTE: Self

Wire value 155.

Source

pub const KILOGRAMS_PER_SECOND: Self

Wire value 42.

Source

pub const KILOGRAMS_PER_MINUTE: Self

Wire value 43.

Source

pub const KILOGRAMS_PER_HOUR: Self

Wire value 44.

Source

pub const POUNDS_MASS_PER_SECOND: Self

Wire value 119.

Source

pub const POUNDS_MASS_PER_MINUTE: Self

Wire value 45.

Source

pub const POUNDS_MASS_PER_HOUR: Self

Wire value 46.

Source

pub const TONS_PER_HOUR: Self

Wire value 156.

Source

pub const MILLIWATTS: Self

Wire value 132.

Source

pub const WATTS: Self

Wire value 47.

Source

pub const KILOWATTS: Self

Wire value 48.

Source

pub const MEGAWATTS: Self

Wire value 49.

Source

pub const BTUS_PER_HOUR: Self

Wire value 50.

Source

pub const KILO_BTUS_PER_HOUR: Self

Wire value 157.

Source

pub const JOULE_PER_HOURS: Self

Wire value 247.

Source

pub const HORSEPOWER: Self

Wire value 51.

Source

pub const TONS_REFRIGERATION: Self

Wire value 52.

Source

pub const PASCALS: Self

Wire value 53.

Source

pub const HECTOPASCALS: Self

Wire value 133.

Source

pub const KILOPASCALS: Self

Wire value 54.

Source

pub const MILLIBARS: Self

Wire value 134.

Source

pub const BARS: Self

Wire value 55.

Source

pub const POUNDS_FORCE_PER_SQUARE_INCH: Self

Wire value 56.

Source

pub const MILLIMETERS_OF_WATER: Self

Wire value 206.

Source

pub const CENTIMETERS_OF_WATER: Self

Wire value 57.

Source

pub const INCHES_OF_WATER: Self

Wire value 58.

Source

pub const MILLIMETERS_OF_MERCURY: Self

Wire value 59.

Source

pub const CENTIMETERS_OF_MERCURY: Self

Wire value 60.

Source

pub const INCHES_OF_MERCURY: Self

Wire value 61.

Source

pub const DEGREES_CELSIUS: Self

Wire value 62.

Source

pub const DEGREES_KELVIN: Self

Wire value 63.

Source

pub const DEGREES_KELVIN_PER_HOUR: Self

Wire value 181.

Source

pub const DEGREES_KELVIN_PER_MINUTE: Self

Wire value 182.

Source

pub const DEGREES_FAHRENHEIT: Self

Wire value 64.

Source

pub const DEGREE_DAYS_CELSIUS: Self

Wire value 65.

Source

pub const DEGREE_DAYS_FAHRENHEIT: Self

Wire value 66.

Source

pub const DELTA_DEGREES_FAHRENHEIT: Self

Wire value 120.

Source

pub const DELTA_DEGREES_KELVIN: Self

Wire value 121.

Source

pub const YEARS: Self

Wire value 67.

Source

pub const MONTHS: Self

Wire value 68.

Source

pub const WEEKS: Self

Wire value 69.

Source

pub const DAYS: Self

Wire value 70.

Source

pub const HOURS: Self

Wire value 71.

Source

pub const MINUTES: Self

Wire value 72.

Source

pub const SECONDS: Self

Wire value 73.

Source

pub const HUNDREDTHS_SECONDS: Self

Wire value 158.

Source

pub const MILLISECONDS: Self

Wire value 159.

Source

pub const NEWTON_METERS: Self

Wire value 160.

Source

pub const MILLIMETERS_PER_SECOND: Self

Wire value 161.

Source

pub const MILLIMETERS_PER_MINUTE: Self

Wire value 162.

Source

pub const METERS_PER_SECOND: Self

Wire value 74.

Source

pub const METERS_PER_MINUTE: Self

Wire value 163.

Source

pub const METERS_PER_HOUR: Self

Wire value 164.

Source

pub const KILOMETERS_PER_HOUR: Self

Wire value 75.

Source

pub const FEET_PER_SECOND: Self

Wire value 76.

Source

pub const FEET_PER_MINUTE: Self

Wire value 77.

Source

pub const MILES_PER_HOUR: Self

Wire value 78.

Source

pub const CUBIC_FEET: Self

Wire value 79.

Source

pub const CUBIC_METERS: Self

Wire value 80.

Source

pub const IMPERIAL_GALLONS: Self

Wire value 81.

Source

pub const MILLILITERS: Self

Wire value 197.

Source

pub const LITERS: Self

Wire value 82.

Source

pub const US_GALLONS: Self

Wire value 83.

Source

pub const CUBIC_FEET_PER_SECOND: Self

Wire value 142.

Source

pub const CUBIC_FEET_PER_MINUTE: Self

Wire value 84.

Source

pub const MILLION_STANDARD_CUBIC_FEET_PER_MINUTE: Self

Wire value 254.

Source

pub const CUBIC_FEET_PER_HOUR: Self

Wire value 191.

Source

pub const CUBIC_FEET_PER_DAY: Self

Wire value 248.

Source

pub const STANDARD_CUBIC_FEET_PER_DAY: Self

Wire value 47808.

Source

pub const MILLION_STANDARD_CUBIC_FEET_PER_DAY: Self

Wire value 47809.

Source

pub const THOUSAND_CUBIC_FEET_PER_DAY: Self

Wire value 47810.

Source

pub const THOUSAND_STANDARD_CUBIC_FEET_PER_DAY: Self

Wire value 47811.

Source

pub const POUNDS_MASS_PER_DAY: Self

Wire value 47812.

Source

pub const CUBIC_METERS_PER_SECOND: Self

Wire value 85.

Source

pub const CUBIC_METERS_PER_MINUTE: Self

Wire value 165.

Source

pub const CUBIC_METERS_PER_HOUR: Self

Wire value 135.

Source

pub const CUBIC_METERS_PER_DAY: Self

Wire value 249.

Source

pub const IMPERIAL_GALLONS_PER_MINUTE: Self

Wire value 86.

Source

pub const MILLILITERS_PER_SECOND: Self

Wire value 198.

Source

pub const LITERS_PER_SECOND: Self

Wire value 87.

Source

pub const LITERS_PER_MINUTE: Self

Wire value 88.

Source

pub const LITERS_PER_HOUR: Self

Wire value 136.

Source

pub const US_GALLONS_PER_MINUTE: Self

Wire value 89.

Source

pub const US_GALLONS_PER_HOUR: Self

Wire value 192.

Source

pub const DEGREES_ANGULAR: Self

Wire value 90.

Source

pub const DEGREES_CELSIUS_PER_HOUR: Self

Wire value 91.

Source

pub const DEGREES_CELSIUS_PER_MINUTE: Self

Wire value 92.

Source

pub const DEGREES_FAHRENHEIT_PER_HOUR: Self

Wire value 93.

Source

pub const DEGREES_FAHRENHEIT_PER_MINUTE: Self

Wire value 94.

Source

pub const JOULE_SECONDS: Self

Wire value 183.

Source

pub const KILOGRAMS_PER_CUBIC_METER: Self

Wire value 186.

Source

pub const KILOWATT_HOURS_PER_SQUARE_METER: Self

Wire value 137.

Source

pub const KILOWATT_HOURS_PER_SQUARE_FOOT: Self

Wire value 138.

Source

pub const WATT_HOURS_PER_CUBIC_METER: Self

Wire value 250.

Source

pub const JOULES_PER_CUBIC_METER: Self

Wire value 251.

Source

pub const MEGAJOULES_PER_SQUARE_METER: Self

Wire value 139.

Source

pub const MEGAJOULES_PER_SQUARE_FOOT: Self

Wire value 140.

Source

pub const MOLE_PERCENT: Self

Wire value 252.

Source

pub const NO_UNITS: Self

Wire value 95.

Source

pub const NEWTON_SECONDS: Self

Wire value 187.

Source

pub const NEWTONS_PER_METER: Self

Wire value 188.

Source

pub const PARTS_PER_MILLION: Self

Wire value 96.

Source

pub const PARTS_PER_BILLION: Self

Wire value 97.

Source

pub const PASCAL_SECONDS: Self

Wire value 253.

Source

pub const PERCENT: Self

Wire value 98.

Source

pub const PERCENT_OBSCURATION_PER_FOOT: Self

Wire value 143.

Source

pub const PERCENT_OBSCURATION_PER_METER: Self

Wire value 144.

Source

pub const PERCENT_PER_SECOND: Self

Wire value 99.

Source

pub const PER_MINUTE: Self

Wire value 100.

Source

pub const PER_SECOND: Self

Wire value 101.

Source

pub const PSI_PER_DEGREE_FAHRENHEIT: Self

Wire value 102.

Source

pub const RADIANS: Self

Wire value 103.

Source

pub const RADIANS_PER_SECOND: Self

Wire value 184.

Source

pub const REVOLUTIONS_PER_MINUTE: Self

Wire value 104.

Source

pub const SQUARE_METERS_PER_NEWTON: Self

Wire value 185.

Source

pub const WATTS_PER_METER_PER_DEGREE_KELVIN: Self

Wire value 189.

Source

pub const WATTS_PER_SQUARE_METER_DEGREE_KELVIN: Self

Wire value 141.

Source

pub const PER_MILLE: Self

Wire value 207.

Source

pub const GRAMS_PER_GRAM: Self

Wire value 208.

Source

pub const KILOGRAMS_PER_KILOGRAM: Self

Wire value 209.

Source

pub const GRAMS_PER_KILOGRAM: Self

Wire value 210.

Source

pub const MILLIGRAMS_PER_GRAM: Self

Wire value 211.

Source

pub const MILLIGRAMS_PER_KILOGRAM: Self

Wire value 212.

Source

pub const GRAMS_PER_MILLILITER: Self

Wire value 213.

Source

pub const GRAMS_PER_LITER: Self

Wire value 214.

Source

pub const MILLIGRAMS_PER_LITER: Self

Wire value 215.

Source

pub const MICROGRAMS_PER_LITER: Self

Wire value 216.

Source

pub const GRAMS_PER_CUBIC_METER: Self

Wire value 217.

Source

pub const MILLIGRAMS_PER_CUBIC_METER: Self

Wire value 218.

Source

pub const MICROGRAMS_PER_CUBIC_METER: Self

Wire value 219.

Source

pub const NANOGRAMS_PER_CUBIC_METER: Self

Wire value 220.

Source

pub const GRAMS_PER_CUBIC_CENTIMETER: Self

Wire value 221.

Source

pub const BECQUERELS: Self

Wire value 222.

Source

pub const KILOBECQUERELS: Self

Wire value 223.

Source

pub const MEGABECQUERELS: Self

Wire value 224.

Source

pub const GRAY: Self

Wire value 225.

Source

pub const MILLIGRAY: Self

Wire value 226.

Source

pub const MICROGRAY: Self

Wire value 227.

Source

pub const SIEVERTS: Self

Wire value 228.

Source

pub const MILLISIEVERTS: Self

Wire value 229.

Source

pub const MICROSIEVERTS: Self

Wire value 230.

Source

pub const MICROSIEVERTS_PER_HOUR: Self

Wire value 231.

Source

pub const MILLIREMS: Self

Wire value 47814.

Source

pub const MILLIREMS_PER_HOUR: Self

Wire value 47815.

Source

pub const DECIBELS_A: Self

Wire value 232.

Source

pub const NEPHELOMETRIC_TURBIDITY_UNIT: Self

Wire value 233.

Source

pub const PH: Self

Wire value 234.

Source

pub const GRAMS_PER_SQUARE_METER: Self

Wire value 235.

Source

pub const MINUTES_PER_DEGREE_KELVIN: Self

Wire value 236.

Source

pub const DEGREES_LOVIBOND: Self

Wire value 47816.

Source

pub const ALCOHOL_BY_VOLUME: Self

Wire value 47817.

Source

pub const INTERNATIONAL_BITTERING_UNITS: Self

Wire value 47818.

Source

pub const EUROPEAN_BITTERNESS_UNITS: Self

Wire value 47819.

Source

pub const DEGREES_PLATO: Self

Wire value 47820.

Source

pub const SPECIFIC_GRAVITY: Self

Wire value 47821.

Source

pub const EUROPEAN_BREWING_CONVENTION: Self

Wire value 47822.

Source

pub const ALL_NAMED: &[(&str, Self)]

All named constants as (name, value) pairs.

Source

pub const fn from_raw(value: u32) -> Self

Create from a raw wire value.

Source

pub const fn to_raw(self) -> u32

Return the raw wire value.

Trait Implementations§

Source§

impl Clone for EngineeringUnits

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 EngineeringUnits

Source§

impl Debug for EngineeringUnits

Source§

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

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

impl Display for EngineeringUnits

Source§

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

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

impl Eq for EngineeringUnits

Source§

impl FromStr for EngineeringUnits

Source§

fn from_str(s: &str) -> Result<Self, Self::Err>

Parse a symbolic constant name, ignoring _/- separators and ASCII case, so every common spelling of a name is accepted (ANALOG_INPUT, analog-input, AnalogInput, analogInput, …).

Raw numeric values are not accepted; use from_raw for those.

Source§

type Err = ParseEnumError

The associated error which can be returned from parsing.
Source§

impl Hash for EngineeringUnits

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 EngineeringUnits

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 EngineeringUnits

Auto Trait Implementations§

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> 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.