Crate mesh_channel_core

Source
Expand description

Core mesh channel functionality, supporting sending and receiving messages within and between nodes.

This contains only the basic channel implementations, not the extra utility types on top that mesh_channel provides.

Structs§

ChannelError
An error representing a failure of a channel.
OneshotReceiver
The receiving half of a channel returned by oneshot.
OneshotSender
The sending half of a channel returned by oneshot.
Receiver
The receiving half of a channel returned by channel.
Recv
The future returned by Receiver::recv.
Sender
The sending half of a channel returned by channel.

Enums§

ChannelErrorKind
The kind of channel failure.
RecvError
An error when receiving a message from a channel.
TryRecvError
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.
oneshot
Creates a unidirection channel for sending a single value of type T.