pub struct PulseOximeter<T: AsyncReadWrite + Unpin> { /* private fields */ }
Expand description

Represents a connection with a pulse oximeter.

Use the PulseOximeter::send_package() and PulseOximeter::receive_package methods to communicate with the foobar device.

Implementations

Create a pulse oximeter interface, using the given port for communication.

Send a package to the device.

Note that if a future returned by a previous call to this function was not polled until completion, the rest of the package of the previous call will be sent before the new package will be sent.

Receive the next package from the device.

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.

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.