Struct shared_bus::proxy::BusProxy

source ·
pub struct BusProxy<'a, M: 'a + BusMutex<RefCell<T>>, T>(_, _);
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

Error type
Reads enough bytes from slave with address to fill buffer Read more
Error type
Sends words to the slave. Returns the words received from the slave
Error type
Writes bytes to slave with address address Read more
Error type
Sends words to the slave, ignoring all the incoming words
Error type
Writes bytes to slave with address address and then reads enough bytes to fill buffer in a single transaction Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.