Trait OreSinkExt

Source
pub trait OreSinkExt<T>: Sink<T> {
    // Provided methods
    fn boxed(self) -> Box<dyn Sink<T, Error = Self::Error> + Send>
       where Self: Sized + Send + 'static { ... }
    fn enqueue(&mut self, item: T) -> Enqueue<'_, Self, T>  { ... }
}
Available on crate feature async only.
Expand description

Extension methods for sinks.

Provided Methods§

Source

fn boxed(self) -> Box<dyn Sink<T, Error = Self::Error> + Send>
where Self: Sized + Send + 'static,

Boxes this sink.

Source

fn enqueue(&mut self, item: T) -> Enqueue<'_, Self, T>

Like futures::sink::SinkExt::send, but does not flush the sink after enqueuing item.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<S, T> OreSinkExt<T> for S
where S: Sink<T>,