Expand description
Implements a sender and a Stream type for sending messages
from a channel to a circuit,
prioritizing the delivery of DESTROY messages.
CircuitRxSender and CircuitRxReceiver take any channel message,
because the receiving end can be either a client or a relay circuit reactor.
The reactor itself will convert into its restricted message set.
Re-exportsยง
use std::pin::Pin;๐use std::task;๐use std::task::Context;๐use std::task::Poll;๐use futures::FutureExt as _;๐use futures::SinkExt as _;๐use futures::Stream;๐use futures::StreamExt as _;๐use oneshot_fused_workaround as oneshot;๐use tor_basic_utils::assert_val_impl_trait;๐use tor_cell::chancell::msg::AnyChanMsg;๐use tor_cell::chancell::msg::Destroy;๐use tor_memquota::mq_queue;๐use tor_memquota::mq_queue::ChannelSpec;๐use tor_memquota::mq_queue::MpscSpec;๐
Structsยง
- Circuit
RxReceiver ๐ - The receiving end of the SPSC queue for inbound data on its way from channel to circuit
- Circuit
RxReceiver ๐Inner - The inner state of a
CircuitRxReceiver. - Circuit
RxSender ๐ - The sending end of the SPSC queue for inbound data on its way from channel to circuit
- Circuit
RxSender ๐Inner - The inner state of a
CircuitRxSender.
Enumsยง
- Send
Error ๐ - Error returned when trying to write to a
CircuitRxSender
Functionsยง
- channel ๐
- Wrap the sender and receiver of an
mq_queuechannel intoCircuitRxSenderandCircuitRxReceiver.