docs.rs failed to build ruspiro-channel-0.1.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
ruspiro-channel-0.1.1
RusPiRo Channel
Usage
To use this crate simply add the dependency to your Cargo.toml
file:
[]
= "0.1.0"
The crate actually implements a multi producer - multi consumer (mpmc) channel only. The channel itself is non blocking but uses atomic operations. When used in a bare metal Raspberry Pi project it has to ensured that atomic operations can be used (configured and enabled MMU - see ruspiro-mmu
crate).
The creation of a channel provides the sender and the receiver part of it. Both can be cloned if required.
use mpmc;
With the async
feature activated an async-channel can be created and the receiver is able to await
available messages.
// it's assumed the crate is compiled with features = ["async"]
use mpmc;
async
Features
Feature | Description |
---|---|
async | Enables the async version of the channel implementation. |