Expand description
One-way, multi-process, typed communication channels. These are used to send messages between mailboxes residing in different processes.
Modules§
- duplex
- Duplex channel API: a single connection carries messages in both directions.
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.
- TcpMode
Iter - An iterator over the variants of TcpMode
- TlsAddr
- Address format for TLS channels.
- TlsMode
Iter - An iterator over the variants of TlsMode
Enums§
- Bind
Spec - Specifies how to bind a channel server.
- 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.
- TcpMode
- The hostname to use for TLS connections.
- 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.
- try_
tls_ acceptor - Try to build a
TlsAcceptorfor an HTTP server by probing for available TLS certificates. - try_
tls_ connector - Try to build a
TlsConnectorfor an HTTP client that needs to connect to a TLS-enabled server. - try_
tls_ pem_ bundle - Try to find a usable TLS
PemBundleby probing the same sources astry_tls_acceptor/try_tls_connector.