Expand description
A bounded channel with any number of senders and receivers, for the stdio channels of the containers and the stdin of their attach clients.
Unlike the mpsc channel of tokio, its receivers can be cloned and closed
through a shared reference, and a sender can push out the oldest message
of a full channel instead of waiting, see Sender::force_send. The
messages stay in the order they got sent, every message goes to one of
the receivers.
Structsยง
- Channel ๐
- The state shared by the senders and receivers of a channel.
- Receiver ๐
- The receiving half of a channel, whose clones share the messages.
- Recv
Error ๐ - The channel is empty and got closed, or all senders are gone.
- Send
Error ๐ - The channel got closed or all receivers are gone, with the message which could not be sent.
- Sender ๐
- The sending half of a channel.
- State ๐
Enumsยง
- Push ๐
- Why a message could not be queued.
- TryRecv
Error ๐ - Why
Receiver::try_recvgot no message.
Functionsยง
- bounded ๐
- Create a channel which holds up to
capacitymessages, which must not be zero.