Trait tor_async_utils::SinkExt
source · pub trait SinkExt<Item>: Sink<Item> {
// Required method
fn with_fn<F, T, E>(self, func: F) -> WithFn<Self, F, T, E>
where Self: Sized,
F: FnMut(T) -> Result<Item, E>,
E: From<Self::Error>;
}
Expand description
Extension trait for Sink