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 oneshot_fused_workaround as oneshot;
Modulesยง
- counting_
streams - A facility for an MPSC channel that counts the number of outstanding entries on the channel.
- join_
read_ ๐write - Join a readable and writeable into a single
AsyncRead+AsyncWrite - peekable_
stream - Provides utilities for peeking at items in
futures::Stream. - prepare_
send ๐ - Extension trait for using
Sinkmore safely. - 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ยง
- Drop
Notify Watch Sender - Wrapper for
postage::watch::Senderthat sendsDropNotifyEof::eof()when dropped - Join
Read Write - Async readable/writeable that dispatches reads to
Rand writes toW - Mpsc
Other Sink TrySend Error mpsc::Sender::try_sendreturned an uncategorisable error- Sink
Prepare Send Future - Future for
SinkPrepareExt::prepare_send_from - Sink
Sendable - A
Sinkwhich is ready to receive an item
Enumsยง
- Erased
Sink TrySend Error - Type-erased error for
SinkTrySend::try_send
Traitsยง
- Drop
Notify EofSignallable - Values that can signal EOF
- Postage
Watch Sender Ext - Extension trait for some
postage::watch::Senderto providemaybe_send - Sink
Close Channel - A
Sinkwith aclose_channelmethod likefutures::channel::mpsc::Senderโs. - SinkExt
- Extension trait for
Sink - Sink
Prepare Ext - Extension trait for
Sinkto add a method for cancel-safe usage. - Sink
TrySend - A
Sinkwith atry_sendmethod likefutures::channel::mpsc::Senderโs. - Sink
TrySend Error - Error from
SinkTrySend::try_send