Expand description
ยงtor-async-utils
Utilities (low-level) for Tor
Miscellaneous futures-related utilities for tor-* and arti-*.
This crate lives near the bottom of the Tor crate stack.
If you find anything in this crate generally useful, it should probably move out into a crate of its own.
License: MIT OR Apache-2.0
Re-exportsยง
pub use prepare_send::SinkPrepareExt;pub use prepare_send::SinkPrepareSendFuture;pub use prepare_send::SinkSendable;pub use sinkext::SinkExt;pub use sink_close_channel::SinkCloseChannel;pub use sink_try_send::ErasedSinkTrySendError;pub use sink_try_send::MpscOtherSinkTrySendError;pub use sink_try_send::SinkTrySend;pub use sink_try_send::SinkTrySendError;pub use watch::DropNotifyEofSignallable;pub use watch::DropNotifyWatchSender;pub use watch::PostageWatchSenderExt;pub use oneshot_fused_workaround as oneshot;pub(crate) use futures::channel::mpsc;๐
Modulesยง
- bw_pool
- A shared token pool with a lock-free fast path and FIFO waiting queue.
- counting_
streams - A facility for an MPSC channel that counts the number of outstanding entries on the channel.
- global_
rate_ limit - Rate limiter objects backed by a shared
crate::bw_pool::BandwidthPoolmaking them global as in sharable accross multiple thread/tasks. - join_
read_ ๐write - Join a readable and writeable into a single
AsyncRead+AsyncWrite - oneshot_
broadcast - A oneshot broadcast channel.
- peekable_
stream - Provides utilities for peeking at items in
futures::Stream. - prepare_
send ๐ - Extension trait for using
Sinkmore safely. - rate_
limited_ writer - Rate-limited
AsyncWritewriters backed by a token bucket. - sink_
close_ ๐channel SinkCloseChannel- sink_
try_ ๐send SinkTrySend- sinkext ๐
- Extension trait for
Sink. - stream_
peek StreamUnobtrusivePeeker- watch ๐
- Extension trait for more efficient use of
postage::watch.
Structsยง
- Join
Read Write - Async readable/writeable that dispatches reads to
Rand writes toW