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§
- peekable_
stream - Provides utilities for peeking at items in
futures::Stream. - stream_
peek StreamUnobtrusivePeeker
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 like [futures::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 like [futures::channel::mpsc::Sender’s] - Sink
TrySend Error - Error from
SinkTrySend::try_send