Struct shared_bus::proxy::BusProxy[][src]

pub struct BusProxy<'a, M: 'a + BusMutex<RefCell<T>>, T>(_, _);

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

impl<'a, M: 'a + BusMutex<RefCell<T>>, T: Write> Write for BusProxy<'a, M, T>
[src]

Error type

Sends bytes to slave with address addr Read more

impl<'a, M: 'a + BusMutex<RefCell<T>>, T: Read> Read for BusProxy<'a, M, T>
[src]

Error type

Reads enough bytes from slave with address to fill buffer Read more

impl<'a, M: 'a + BusMutex<RefCell<T>>, T: WriteRead> WriteRead for BusProxy<'a, M, T>
[src]

Error type

Sends bytes to slave with address addr and then reads enough bytes to fill buffer in a single transaction Read more

Auto Trait Implementations

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