Struct shared_bus::I2cProxy
source · [−]pub struct I2cProxy<'a, M> { /* private fields */ }
Expand description
Proxy type for I2C bus sharing.
The I2cProxy
implements all (blocking) I2C traits so it can be passed to drivers instead of
the bus instance. Internally, it holds reference to the bus via a mutex, ensuring that all
accesses are strictly synchronized.
An I2cProxy
is created by calling BusManager::acquire_i2c()
.
Trait Implementations
Auto Trait Implementations
impl<'a, M> RefUnwindSafe for I2cProxy<'a, M>where
M: RefUnwindSafe,
impl<'a, M> Send for I2cProxy<'a, M>where
M: Sync,
impl<'a, M> Sync for I2cProxy<'a, M>where
M: Sync,
impl<'a, M> Unpin for I2cProxy<'a, M>
impl<'a, M> UnwindSafe for I2cProxy<'a, M>where
M: RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more