pub struct StubSensor { /* private fields */ }Expand description
Stub sensor that returns a fixed value. Used for testing and when
the hardware feature is disabled.
Implementations§
Source§impl StubSensor
impl StubSensor
Trait Implementations§
Source§impl SensorDevice for StubSensor
impl SensorDevice for StubSensor
Auto Trait Implementations§
impl Freeze for StubSensor
impl RefUnwindSafe for StubSensor
impl Send for StubSensor
impl Sync for StubSensor
impl Unpin for StubSensor
impl UnsafeUnpin for StubSensor
impl UnwindSafe for StubSensor
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