Expand description
A “prelude” for users of the tokio-i2c crate.
This prelude is similar to the standard library’s prelude in that you’ll almost always want to import its entire contents, but unlike the standard library’s prelude you’ll have to do so manually:
use tokio_i2c::prelude::*;The prelude may grow over time as additional items see ubiquitous use.
Re-exports§
pub use super::Functionality;pub use super::Master;pub use super::Message;pub use super::MessageFlags;pub use super::TEN_BIT;
Modules§
Structs§
- Duration
- A
Durationtype to represent a span of time, typically used for system timeouts. - Small
Vec - A
Vec-like container that can store a small number of elements inline.
Enums§
- Async
- Return type of future, indicating whether a value is ready or not.
- Async
Sink - The result of an asynchronous attempt to send a value to a sink.
Traits§
- Async
Read - Read bytes asynchronously.
- Async
Write - Writes bytes asynchronously.
- Future
- Trait for types which are a placeholder of a value that may become available at some later point in time.
- Future
Ext - An extension trait for
Futurethat provides a variety of convenient combinator functions. - Into
Future - Class of types which can be converted into a future.
- Read
- The
Readtrait allows for reading bytes from a source. - Sink
- A
Sinkis a value into which other values can be sent, asynchronously. - Stream
- A stream of values, not all of which may have been produced yet.
- Stream
Ext - An extension trait for
Streamthat provides a variety of convenient combinator functions. - Write
- A trait for objects which are byte-oriented sinks.
Type Aliases§
- Poll
- Return type of the
Future::pollmethod, indicates whether a future’s value is ready or not.