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::Sender
that sendsDropNotifyEof::eof()
when dropped - Join
Read Write - Async readable/writeable that dispatches reads to
R
and writes toW
- Mpsc
Other Sink TrySend Error mpsc::Sender::try_send
returned an uncategorisable error- Sink
Prepare Send Future - Future for
SinkPrepareExt::prepare_send_from
- Sink
Sendable - A
Sink
which 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::Sender
to providemaybe_send
- Sink
Close Channel - A
Sink
with aclose_channel
method like [futures::channel::mpsc::Sender
’s] - SinkExt
- Extension trait for
Sink
- Sink
Prepare Ext - Extension trait for
Sink
to add a method for cancel-safe usage. - Sink
TrySend - A
Sink
with atry_send
method like [futures::channel::mpsc::Sender
’s] - Sink
TrySend Error - Error from
SinkTrySend::try_send