pub struct DeviceConfig { /* private fields */ }
Expand description
Sensor settings structure
Implementations§
Source§impl DeviceConfig
impl DeviceConfig
pub fn filter(&self, filter: Filter) -> Self
pub fn odr(&self, odr: Odr) -> Self
pub fn oversample_humidity(&self, h: Sample) -> Self
pub fn oversample_pressure(&self, p: Sample) -> Self
pub fn oversample_temperature(&self, t: Sample) -> Self
Trait Implementations§
Source§impl Clone for DeviceConfig
impl Clone for DeviceConfig
Source§fn clone(&self) -> DeviceConfig
fn clone(&self) -> DeviceConfig
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 Default for DeviceConfig
impl Default for DeviceConfig
Source§fn default() -> DeviceConfig
fn default() -> DeviceConfig
Returns the “default value” for a type. Read more
impl Copy for DeviceConfig
Auto Trait Implementations§
impl Freeze for DeviceConfig
impl RefUnwindSafe for DeviceConfig
impl Send for DeviceConfig
impl Sync for DeviceConfig
impl Unpin for DeviceConfig
impl UnwindSafe for DeviceConfig
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