Struct embedded_hal_compat::Forward[][src]

pub struct Forward<T> { /* fields omitted */ }
Expand description

Forward compatibility container object. This is generic over different E-H types and will provide adaption depending on the bound type.

Implementations

Create a new compatibility wrapper object

Fetch a reference to the wrapped object

Fetch a mutable reference to the wrapped object

Destroy the compatibility wrapper, returning the wrapped object

Trait Implementations

Enumeration of DelayMs errors

Pauses execution for ms milliseconds

Enumeration of DelayMs errors

Pauses execution for ms milliseconds

Enumeration of DelayMs errors

Pauses execution for us microseconds

Enumeration of DelayMs errors

Pauses execution for us microseconds

Is the input pin high?

Is the input pin low?

Error type

Set the output as high

Set the output as low

Error type

Drives the pin high or low depending on the provided value Read more

Error type

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

Associated error type

Execute the provided transactions

Error type

Writes and reads simultaneously. The contents of words are written to the slave, and the received words are stored into the same words buffer, overwriting it. Read more

Error type

Writes bytes to slave with address address Read more

The type of error that can occur when writing

Writes a slice, blocking until everything has been written Read more

Block until the serial interface has sent all buffered words

Error type

Writes words to the slave, ignoring all the incoming words

Error type

Writes bytes to slave with address address Read more

Error type

Writes 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

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

Performs the conversion.

Performs the conversion.

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.