pub struct InterfaceAsync<I2C, Delay> { /* private fields */ }
Implementations§
Source§impl<I2C, Delay> InterfaceAsync<I2C, Delay>
impl<I2C, Delay> InterfaceAsync<I2C, Delay>
Sourcepub fn new(i2cdev: I2C, delay: Delay) -> Self
pub fn new(i2cdev: I2C, delay: Delay) -> Self
Create async interface for wii-extension controller
Sourcepub fn destroy(self) -> (I2C, Delay)
pub fn destroy(self) -> (I2C, Delay)
Destroy i2c interface, allowing recovery of i2c and delay
Trait Implementations§
Auto Trait Implementations§
impl<I2C, Delay> Freeze for InterfaceAsync<I2C, Delay>
impl<I2C, Delay> RefUnwindSafe for InterfaceAsync<I2C, Delay>where
I2C: RefUnwindSafe,
Delay: RefUnwindSafe,
impl<I2C, Delay> Send for InterfaceAsync<I2C, Delay>
impl<I2C, Delay> Sync for InterfaceAsync<I2C, Delay>
impl<I2C, Delay> Unpin for InterfaceAsync<I2C, Delay>
impl<I2C, Delay> UnwindSafe for InterfaceAsync<I2C, Delay>where
I2C: UnwindSafe,
Delay: 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