#[repr(u8)]pub enum Resolution {
Bits9 = 31,
Bits10 = 63,
Bits11 = 95,
Bits12 = 127,
}
Variants§
Implementations§
Source§impl Resolution
impl Resolution
pub fn max_measurement_time_millis(&self) -> u16
Sourcepub fn delay_for_measurement_time(&self, delay: &mut impl DelayMs<u16>)
pub fn delay_for_measurement_time(&self, delay: &mut impl DelayMs<u16>)
Blocks for the amount of time required to finished measuring temperature using this resolution
Trait Implementations§
Source§impl Clone for Resolution
impl Clone for Resolution
Source§fn clone(&self) -> Resolution
fn clone(&self) -> Resolution
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 Resolution
impl Debug for Resolution
impl Copy for Resolution
Auto Trait Implementations§
impl Freeze for Resolution
impl RefUnwindSafe for Resolution
impl Send for Resolution
impl Sync for Resolution
impl Unpin for Resolution
impl UnwindSafe for Resolution
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