Expand description
Implement SinkBlocker, a wrapper type to allow policy-based blocking of
a futures::Sink.
Re-exportsยง
pub(crate) use boolean_policy::BooleanPolicy;๐pub(crate) use counting_policy::CountingPolicy;๐use std::pin::Pin;๐use std::task::Context;๐use std::task::Poll;๐use std::task::Waker;๐use futures::Sink;๐use pin_project::pin_project;๐use tor_error::Bug;๐
Modulesยง
- boolean_
policy ๐ - Implement a sink-blocking policy based on a simple blocked/unblocked status.
- counting_
policy ๐ - Implement a sink-blocking policy that allows a limited number of items to be sent.
Structsยง
- Sink
Blocker ๐ - A wrapper for a
futures::Sinkthat allows its blocking status to be turned on and off according to a policy.
Traitsยง
- Policy ๐
- A policy that describes whether cells can be sent on a
SinkBlocker.