pub struct Measurement<Output, const D: u16, const C: u8>(/* private fields */);
Expand description
Two constants are required to perform a measurement: the command or register
address C
and the delay D
in ms from initiating the measurement to
reading the result. Both values are different for temperature and relative
humidity on the HTU21.
Implementations§
Trait Implementations§
Source§impl<Output: Clone, const D: u16, const C: u8> Clone for Measurement<Output, D, C>
impl<Output: Clone, const D: u16, const C: u8> Clone for Measurement<Output, D, C>
Source§fn clone(&self) -> Measurement<Output, D, C>
fn clone(&self) -> Measurement<Output, D, C>
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 moreimpl<Output: Copy, const D: u16, const C: u8> Copy for Measurement<Output, D, C>
impl<Output, const D: u16, const C: u8> StructuralPartialEq for Measurement<Output, D, C>
Auto Trait Implementations§
impl<Output, const D: u16, const C: u8> Freeze for Measurement<Output, D, C>where
Output: Freeze,
impl<Output, const D: u16, const C: u8> RefUnwindSafe for Measurement<Output, D, C>where
Output: RefUnwindSafe,
impl<Output, const D: u16, const C: u8> Send for Measurement<Output, D, C>where
Output: Send,
impl<Output, const D: u16, const C: u8> Sync for Measurement<Output, D, C>where
Output: Sync,
impl<Output, const D: u16, const C: u8> Unpin for Measurement<Output, D, C>where
Output: Unpin,
impl<Output, const D: u16, const C: u8> UnwindSafe for Measurement<Output, D, C>where
Output: UnwindSafe,
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