pub struct BackMsbEnv(/* private fields */);Implementations§
Source§impl BackMsbEnv
impl BackMsbEnv
Sourcepub const fn with_temp_checked(self, value: f32) -> Result<Self, ()>
pub const fn with_temp_checked(self, value: f32) -> Result<Self, ()>
Temperature of board
Units: C
Bits: 0..16
Sourcepub const fn set_temp_checked(&mut self, value: f32) -> Result<(), ()>
pub const fn set_temp_checked(&mut self, value: f32) -> Result<(), ()>
Temperature of board
Units: C
Bits: 0..16
Sourcepub const fn with_humidity_checked(self, value: f32) -> Result<Self, ()>
pub const fn with_humidity_checked(self, value: f32) -> Result<Self, ()>
Humidity of board
Bits: 16..32
Sourcepub const fn with_humidity(self, value: f32) -> Self
pub const fn with_humidity(self, value: f32) -> Self
Humidity of board
Bits: 16..32
Sourcepub const fn set_humidity(&mut self, value: f32)
pub const fn set_humidity(&mut self, value: f32)
Humidity of board
Bits: 16..32
Source§impl BackMsbEnv
impl BackMsbEnv
Sourcepub fn try_with_temp(self, v: f32) -> Result<Self, OutOfRange>
pub fn try_with_temp(self, v: f32) -> Result<Self, OutOfRange>
Like Self::with_temp but returns
OutOfRange instead of saturating an unrepresentable value.
Sourcepub fn try_set_temp(&mut self, v: f32) -> Result<(), OutOfRange>
pub fn try_set_temp(&mut self, v: f32) -> Result<(), OutOfRange>
Like Self::set_temp but returns
OutOfRange instead of saturating an unrepresentable value.
Sourcepub fn try_with_humidity(self, v: f32) -> Result<Self, OutOfRange>
pub fn try_with_humidity(self, v: f32) -> Result<Self, OutOfRange>
Like Self::with_humidity but returns
OutOfRange instead of saturating an unrepresentable value.
Sourcepub fn try_set_humidity(&mut self, v: f32) -> Result<(), OutOfRange>
pub fn try_set_humidity(&mut self, v: f32) -> Result<(), OutOfRange>
Like Self::set_humidity but returns
OutOfRange instead of saturating an unrepresentable value.
Trait Implementations§
Source§impl Clone for BackMsbEnv
impl Clone for BackMsbEnv
Source§fn clone(&self) -> BackMsbEnv
fn clone(&self) -> BackMsbEnv
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 BackMsbEnv
impl Debug for BackMsbEnv
Source§impl Default for BackMsbEnv
impl Default for BackMsbEnv
Source§impl From<BackMsbEnv> for u32
impl From<BackMsbEnv> for u32
Source§fn from(v: BackMsbEnv) -> Self
fn from(v: BackMsbEnv) -> Self
Converts to this type from the input type.
Source§impl From<u32> for BackMsbEnv
impl From<u32> for BackMsbEnv
Source§impl ToCanFrame for BackMsbEnv
impl ToCanFrame for BackMsbEnv
impl Copy for BackMsbEnv
Auto Trait Implementations§
impl Freeze for BackMsbEnv
impl RefUnwindSafe for BackMsbEnv
impl Send for BackMsbEnv
impl Sync for BackMsbEnv
impl Unpin for BackMsbEnv
impl UnwindSafe for BackMsbEnv
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