pub enum SampleRate {
OneShot,
Auto500mHz,
Auto1Hz,
Auto2Hz,
Auto4Hz,
Auto10Hz,
}
Expand description
Sample rate options, covering both the one-shot and auto modes.
Variants§
OneShot
initiate and read a single measurement, returning device back to sleep afterward
Auto500mHz
device self-times 1 sample every 2 seconds
Auto1Hz
device self-times 1 sample every 1 second
Auto2Hz
device self-times 1 sample every 0.5 seconds
Auto4Hz
device self-times 1 sample every 0.25 seconds
Auto10Hz
device self-times 1 sample every 0.1 seconds
Trait Implementations§
Source§impl Clone for SampleRate
impl Clone for SampleRate
Source§fn clone(&self) -> SampleRate
fn clone(&self) -> SampleRate
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 SampleRate
impl Debug for SampleRate
Source§impl PartialEq for SampleRate
impl PartialEq for SampleRate
impl Copy for SampleRate
impl Eq for SampleRate
impl StructuralPartialEq for SampleRate
Auto Trait Implementations§
impl Freeze for SampleRate
impl RefUnwindSafe for SampleRate
impl Send for SampleRate
impl Sync for SampleRate
impl Unpin for SampleRate
impl UnwindSafe for SampleRate
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