pub enum AmbientPressureCompensation {
DefaultPressure,
CompensationPressure(AmbientPressure),
}Expand description
Arguments for setting the ambient pressure compensation value.
Variants§
DefaultPressure
Configures ambient pressure compensation to the default value of 1013.25 mBar
CompensationPressure(AmbientPressure)
Configures ambient pressure compensation to a custom value.
Implementations§
Source§impl AmbientPressureCompensation
impl AmbientPressureCompensation
Sourcepub const fn to_be_bytes(&self) -> [u8; 2]
pub const fn to_be_bytes(&self) -> [u8; 2]
Returns a byte representation of the ambient pressure compensation value.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AmbientPressureCompensation
impl RefUnwindSafe for AmbientPressureCompensation
impl Send for AmbientPressureCompensation
impl Sync for AmbientPressureCompensation
impl Unpin for AmbientPressureCompensation
impl UnwindSafe for AmbientPressureCompensation
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