pub struct DeviceSettings {
pub smart_home_enabled: bool,
pub bluetooth_range: BluetoothRange,
pub temperature_unit: TemperatureUnit,
pub radon_unit: RadonUnit,
pub buzzer_enabled: bool,
pub auto_calibration_enabled: bool,
}Expand description
Device settings read from the SENSOR_STATE characteristic.
Fields§
§smart_home_enabled: boolSmart Home integration enabled.
bluetooth_range: BluetoothRangeBluetooth range setting.
temperature_unit: TemperatureUnitTemperature display unit.
radon_unit: RadonUnitRadon display unit (only relevant for Aranet Radon).
buzzer_enabled: boolWhether buzzer is enabled.
auto_calibration_enabled: boolWhether automatic calibration is enabled (Aranet4 only).
Trait Implementations§
Source§impl Clone for DeviceSettings
impl Clone for DeviceSettings
Source§fn clone(&self) -> DeviceSettings
fn clone(&self) -> DeviceSettings
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 DeviceSettings
impl Debug for DeviceSettings
Source§impl Default for DeviceSettings
impl Default for DeviceSettings
Source§fn default() -> DeviceSettings
fn default() -> DeviceSettings
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DeviceSettings
impl RefUnwindSafe for DeviceSettings
impl Send for DeviceSettings
impl Sync for DeviceSettings
impl Unpin for DeviceSettings
impl UnwindSafe for DeviceSettings
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