Struct shared_bus::proxy::BusProxy
source · Expand description
A proxy type that can be used instead of an actual bus peripheral.
BusProxy implements all bus traits and can thus be used in place of the
actual bus peripheral.
BusProxies are created by calling BusManager::acquire
Trait Implementations
sourceimpl<'a, M, SPI: Transfer<u8>> Transfer<u8> for BusProxy<'a, M, SPI>where
M: 'a + BusMutex<RefCell<SPI>>,
impl<'a, M, SPI: Transfer<u8>> Transfer<u8> for BusProxy<'a, M, SPI>where
M: 'a + BusMutex<RefCell<SPI>>,
sourceimpl<'a, M, I2C: Write> Write<u8> for BusProxy<'a, M, I2C>where
M: 'a + BusMutex<RefCell<I2C>>,
impl<'a, M, I2C: Write> Write<u8> for BusProxy<'a, M, I2C>where
M: 'a + BusMutex<RefCell<I2C>>,
sourceimpl<'a, M, SPI: Write<u8>> Write<u8> for BusProxy<'a, M, SPI>where
M: 'a + BusMutex<RefCell<SPI>>,
impl<'a, M, SPI: Write<u8>> Write<u8> for BusProxy<'a, M, SPI>where
M: 'a + BusMutex<RefCell<SPI>>,
Auto Trait Implementations
impl<'a, M, T> RefUnwindSafe for BusProxy<'a, M, T>where
M: RefUnwindSafe,
T: RefUnwindSafe,
impl<'a, M, T> Send for BusProxy<'a, M, T>where
M: Sync,
T: Send,
impl<'a, M, T> Sync for BusProxy<'a, M, T>where
M: Sync,
T: Sync,
impl<'a, M, T> Unpin for BusProxy<'a, M, T>where
T: Unpin,
impl<'a, M, T> UnwindSafe for BusProxy<'a, M, T>where
M: RefUnwindSafe,
T: UnwindSafe,
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