pub struct Fusb302b<I2C> { /* private fields */ }
Implementations§
Trait Implementations§
source§impl<I2C: I2c> Driver for Fusb302b<I2C>
impl<I2C: I2c> Driver for Fusb302b<I2C>
type RxError = RxError
type TxError = TxError
async fn init(&mut self)
async fn receive_message(&mut self) -> Result<Option<Message>, Self::RxError>
async fn send_message( &mut self, header: Header, payload: &[u8], ) -> Result<(), Self::TxError>
fn state(&mut self) -> DriverState
Auto Trait Implementations§
impl<I2C> Freeze for Fusb302b<I2C>where
I2C: Freeze,
impl<I2C> RefUnwindSafe for Fusb302b<I2C>where
I2C: RefUnwindSafe,
impl<I2C> Send for Fusb302b<I2C>where
I2C: Send,
impl<I2C> Sync for Fusb302b<I2C>where
I2C: Sync,
impl<I2C> Unpin for Fusb302b<I2C>where
I2C: Unpin,
impl<I2C> UnwindSafe for Fusb302b<I2C>where
I2C: 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
source§impl<T, U> UnsafeFrom<U> for Twhere
U: Into<T>,
impl<T, U> UnsafeFrom<U> for Twhere
U: Into<T>,
source§unsafe fn unsafe_from(other: U) -> T
unsafe fn unsafe_from(other: U) -> T
Calls U::into(other)
.
That is, this conversion is whatever the implementation of Into
<T> for U
chooses to
do.
source§impl<T, U> UnsafeInto<U> for Twhere
U: UnsafeFrom<T>,
impl<T, U> UnsafeInto<U> for Twhere
U: UnsafeFrom<T>,
source§unsafe fn unsafe_into(self) -> U
unsafe fn unsafe_into(self) -> U
Calls U::unsafe_from(self)
.
That is, this conversion is whatever the implementation of UnsafeFrom
<T> for U
chooses to do.