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§
fn push(&mut self, item: T) -> StreamResult<Demand>
Provided Methods§
fn complete(&mut self) -> StreamResult<()>
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".