pub struct Sensor<U> { /* private fields */ }Expand description
A struct representing sensor interface.
Implementations§
Source§impl<R, W> Sensor<UartWrapper<R, W>>
Constructs the Sensor interface from 2 ‘halves’ of UART.
impl<R, W> Sensor<UartWrapper<R, W>>
Constructs the Sensor interface from 2 ‘halves’ of UART.
pub fn from_rx_tx(read: R, write: W) -> Sensor<UartWrapper<R, W>>
Source§impl<U> Sensor<U>
impl<U> Sensor<U>
Auto Trait Implementations§
impl<U> Freeze for Sensor<U>where
U: Freeze,
impl<U> RefUnwindSafe for Sensor<U>where
U: RefUnwindSafe,
impl<U> Send for Sensor<U>where
U: Send,
impl<U> Sync for Sensor<U>where
U: Sync,
impl<U> Unpin for Sensor<U>where
U: Unpin,
impl<U> UnwindSafe for Sensor<U>where
U: 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