Expand description
Higher-level channel types and utilities built on top of mesh_channel_core.
This crate provides the ergonomic channel abstractions that most mesh users interact with:
channel()/oneshot()— re-exported frommesh_channel_corefor basic message passing.rpc—Rpc<I, R>andFailableRpc<I, R>for request/response patterns where the caller awaits a reply.cell—Cell<T>/CellUpdater<T>for reactive push-based configuration updates.cancel—CancelContextfor cooperative cancellation with optional deadlines, transferable across processes.pipe—ReadPipe/WritePipeimplementingAsyncRead/AsyncWriteover mesh with backpressure.error—RemoteErrorandRemoteResultfor error propagation across process boundaries.
Most code should use the mesh facade crate rather than depending on this
crate directly.
Modules§
- cancel
- Cancel context support.
- cell
- An implementation of a cell type that can be updated from a remote mesh node.
- error
- Remotable errors.
- pipe
- Implementation a unidirectional byte stream pipe over mesh.
- rpc
- Remote Procedure Call functionality.
Structs§
- Channel
Error - An error representing a failure of a channel.
- Mpsc
Receiver - The receiving half of a channel returned by
channel. - Mpsc
Sender - The sending half of a channel returned by
channel. - Oneshot
Receiver - The receiving half of a channel returned by
oneshot. - Oneshot
Sender - The sending half of a channel returned by
oneshot. - Receiver
- The receiving half of a channel returned by
channel. - Sender
- The sending half of a channel returned by
channel.
Enums§
- Channel
Error Kind - The kind of channel failure.
- Recv
Error - An error when receiving a message from a channel.
- TryRecv
Error - An error when trying to receive a message from a channel.
Functions§
- channel
- Creates a new channel for sending messages of type
T, returning the sender and receiver ends. - mpsc_
channel - Creates a new channel for sending messages of type
T, returning the sender and receiver ends. - oneshot
- Creates a unidirection channel for sending a single value of type
T.