pub struct FrontMsbEnv(/* private fields */);Implementations§
Source§impl FrontMsbEnv
impl FrontMsbEnv
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 FrontMsbEnv
impl FrontMsbEnv
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 FrontMsbEnv
impl Clone for FrontMsbEnv
Source§fn clone(&self) -> FrontMsbEnv
fn clone(&self) -> FrontMsbEnv
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 FrontMsbEnv
impl Debug for FrontMsbEnv
Source§impl Default for FrontMsbEnv
impl Default for FrontMsbEnv
Source§impl From<FrontMsbEnv> for u32
impl From<FrontMsbEnv> for u32
Source§fn from(v: FrontMsbEnv) -> Self
fn from(v: FrontMsbEnv) -> Self
Converts to this type from the input type.
Source§impl From<u32> for FrontMsbEnv
impl From<u32> for FrontMsbEnv
Source§impl ToCanFrame for FrontMsbEnv
impl ToCanFrame for FrontMsbEnv
impl Copy for FrontMsbEnv
Auto Trait Implementations§
impl Freeze for FrontMsbEnv
impl RefUnwindSafe for FrontMsbEnv
impl Send for FrontMsbEnv
impl Sync for FrontMsbEnv
impl Unpin for FrontMsbEnv
impl UnwindSafe for FrontMsbEnv
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