Struct bme280_rs::Configuration
source · pub struct Configuration { /* private fields */ }Expand description
Chip configuration
Implementations§
source§impl Configuration
impl Configuration
sourcepub fn with_standby_time(self, standby_time: StandbyTime) -> Self
pub fn with_standby_time(self, standby_time: StandbyTime) -> Self
Set the standby time
sourcepub fn with_filter(self, filter: Filter) -> Self
pub fn with_filter(self, filter: Filter) -> Self
Set the filter
sourcepub fn with_temperature_oversampling(
self,
temperature_oversampling: Oversampling
) -> Self
pub fn with_temperature_oversampling( self, temperature_oversampling: Oversampling ) -> Self
Set the oversampling factor for temperature
sourcepub fn with_pressure_oversampling(
self,
pressure_oversampling: Oversampling
) -> Self
pub fn with_pressure_oversampling( self, pressure_oversampling: Oversampling ) -> Self
Set the oversampling factor for pressure
sourcepub fn with_humidity_oversampling(
self,
humidity_oversampling: Oversampling
) -> Self
pub fn with_humidity_oversampling( self, humidity_oversampling: Oversampling ) -> Self
Set the oversampling factor for humidity
sourcepub fn with_sensor_mode(self, sensor_mode: SensorMode) -> Self
pub fn with_sensor_mode(self, sensor_mode: SensorMode) -> Self
Set the sensor mode
Trait Implementations§
source§impl Clone for Configuration
impl Clone for Configuration
source§fn clone(&self) -> Configuration
fn clone(&self) -> Configuration
Returns a copy 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 Configuration
impl Debug for Configuration
source§impl Default for Configuration
impl Default for Configuration
source§fn default() -> Configuration
fn default() -> Configuration
Returns the “default value” for a type. Read more
source§impl From<&Configuration> for (Config, ControlMeasurement, ControlHumidity)
impl From<&Configuration> for (Config, ControlMeasurement, ControlHumidity)
source§fn from(configuration: &Configuration) -> Self
fn from(configuration: &Configuration) -> Self
Converts to this type from the input type.
source§impl PartialEq for Configuration
impl PartialEq for Configuration
source§fn eq(&self, other: &Configuration) -> bool
fn eq(&self, other: &Configuration) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for Configuration
impl StructuralPartialEq for Configuration
Auto Trait Implementations§
impl RefUnwindSafe for Configuration
impl Send for Configuration
impl Sync for Configuration
impl Unpin for Configuration
impl UnwindSafe for Configuration
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