pub struct AmbientPressure(/* private fields */);Expand description
Ambient pressure value used for CO2 measurement compensation in hPa. Must be between 700hPa and 1,200 hPa. The default value is 1,013 hPa.
Trait Implementations§
Source§impl Debug for AmbientPressure
impl Debug for AmbientPressure
Source§impl Default for AmbientPressure
impl Default for AmbientPressure
Source§impl From<AmbientPressure> for u16
impl From<AmbientPressure> for u16
Source§fn from(value: AmbientPressure) -> Self
fn from(value: AmbientPressure) -> Self
Converts to this type from the input type.
Source§impl PartialEq for AmbientPressure
impl PartialEq for AmbientPressure
Source§impl TryFrom<&[u8]> for AmbientPressure
impl TryFrom<&[u8]> for AmbientPressure
Source§impl TryFrom<u16> for AmbientPressure
impl TryFrom<u16> for AmbientPressure
Source§fn try_from(value: u16) -> Result<Self, Self::Error>
fn try_from(value: u16) -> Result<Self, Self::Error>
Create an AmbientPressure value for CO2 compensation. Value ranges are checked
§Errors
ValueOutOfRange: If the ambient pressure is not between 700 and 1,200 hPa.
impl StructuralPartialEq for AmbientPressure
Auto Trait Implementations§
impl Freeze for AmbientPressure
impl RefUnwindSafe for AmbientPressure
impl Send for AmbientPressure
impl Sync for AmbientPressure
impl Unpin for AmbientPressure
impl UnwindSafe for AmbientPressure
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more