Skip to main content

OutHandler

Trait OutHandler 

Source
pub trait OutHandler: Send {
    // Provided methods
    fn on_pull(
        &mut self,
        _logic: &mut GraphStageLogic,
        _outlet: AnyOutlet,
    ) -> StreamResult<()> { ... }
    fn keep_handler(&self) -> bool { ... }
    fn on_downstream_finish(
        &mut self,
        logic: &mut GraphStageLogic,
        _outlet: AnyOutlet,
    ) -> StreamResult<()> { ... }
}

Provided Methods§

Source

fn on_pull( &mut self, _logic: &mut GraphStageLogic, _outlet: AnyOutlet, ) -> StreamResult<()>

Source

fn keep_handler(&self) -> bool

Source

fn on_downstream_finish( &mut self, logic: &mut GraphStageLogic, _outlet: AnyOutlet, ) -> StreamResult<()>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§