Expand description
One-way, multi-process, typed communication channels. These are used to send messages between mailboxes residing in different processes.
Modules§
- sim
- Local simulated channel implementation.
Structs§
- Channel
Rx - Universal channel receiver.
- Channel
Tx - Universal channel transmitter.
- Send
Error - An error that occurred during send. Returns the message that failed to send.
Enums§
- Channel
Addr - The type of a channel address, used to multiplex different underlying channel implementations. ChannelAddrs also have a concrete syntax: the address type (e.g., “tcp” or “local”), followed by “:”, and an address parseable to that type. For example:
- Channel
Error - The type of error that can occur on channel operations.
- Channel
Transport - Types of channel transports.
- TlsMode
- The hostname to use for TLS connections.
- TxStatus
- The possible states of a
Tx
.
Traits§
Functions§
- dial
- Dial the provided address, returning the corresponding Tx, or error if the channel cannot be established. The underlying connection is dropped whenever the returned Tx is dropped.
- serve
- Serve on the provided channel address. The server is turned down when the returned Rx is dropped.
- serve_
local - Serve on the local address. The server is turned down when the returned Rx is dropped.