#[repr(u8)]pub enum Oversampling {
Skip = 0,
X1 = 1,
X2 = 2,
X4 = 3,
X8 = 4,
X16 = 5,
}Expand description
Oversampling settings for temperature, pressure, and humidity data.
Variants§
Skip = 0
Skipped, output set to 0x80000.
X1 = 1
Oversampling × 1
X2 = 2
Oversampling × 2
X4 = 3
Oversampling × 4
X8 = 4
Oversampling × 8
X16 = 5
Oversampling × 16
Implementations§
Trait Implementations§
Source§impl Clone for Oversampling
impl Clone for Oversampling
Source§fn clone(&self) -> Oversampling
fn clone(&self) -> Oversampling
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Oversampling
impl Debug for Oversampling
Source§impl Default for Oversampling
impl Default for Oversampling
Source§impl From<Oversampling> for u8
impl From<Oversampling> for u8
Source§fn from(x: Oversampling) -> Self
fn from(x: Oversampling) -> Self
Converts to this type from the input type.
Source§impl Hash for Oversampling
impl Hash for Oversampling
Source§impl Ord for Oversampling
impl Ord for Oversampling
Source§fn cmp(&self, other: &Oversampling) -> Ordering
fn cmp(&self, other: &Oversampling) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for Oversampling
impl PartialEq for Oversampling
Source§impl PartialOrd for Oversampling
impl PartialOrd for Oversampling
impl Copy for Oversampling
impl Eq for Oversampling
impl StructuralPartialEq for Oversampling
Auto Trait Implementations§
impl Freeze for Oversampling
impl RefUnwindSafe for Oversampling
impl Send for Oversampling
impl Sync for Oversampling
impl Unpin for Oversampling
impl UnwindSafe for Oversampling
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