Skip to main content

PushOutlet

Trait PushOutlet 

Source
pub trait PushOutlet<T>: Send {
    // Required method
    fn push(&mut self, item: T) -> StreamResult<Demand>;

    // Provided methods
    fn complete(&mut self) -> StreamResult<()> { ... }
    fn fail(&mut self, cause: StreamError) -> StreamResult<()> { ... }
}

Required Methods§

Source

fn push(&mut self, item: T) -> StreamResult<Demand>

Provided Methods§

Source

fn complete(&mut self) -> StreamResult<()>

Source

fn fail(&mut self, cause: StreamError) -> StreamResult<()>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§