pub struct Config { /* private fields */ }Implementations§
Source§impl Config
impl Config
pub fn pressure(self, rate: Rate, oversampling: Oversampling) -> Self
pub fn temperature(self, rate: Rate, oversampling: Oversampling) -> Self
pub fn temperature_source(self, source: TemperatureSource) -> Self
pub fn fifo(self, cfg: FifoConfig) -> Self
pub fn interrupts(self, cfg: InterruptConfig) -> Self
pub fn init_timeout_ms(self, timeout_ms: u32) -> Self
pub const fn measurement_period_ms(&self) -> u32
pub const fn suggested_poll_period_ms(&self) -> u32
Trait Implementations§
impl Copy for Config
impl Eq for Config
impl StructuralPartialEq for Config
Auto Trait Implementations§
impl Forget for Config
impl Freeze for Config
impl Move for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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