Trait InputObject

Source
pub trait InputObject {
    // Required method
    fn next_line<'a>(
        &'a mut self,
        context: &'a Context,
    ) -> Pin<Box<dyn Future<Output = Result> + 'a>>;
}
Expand description

Object-safe adapter for the Input trait

InputObject is an object-safe version of the Input trait. It allows the trait to be used as a trait object, which is necessary for dynamic dispatch.

The umbrella implementation is provided for all types that implement the Input trait.

Required Methods§

Source

fn next_line<'a>( &'a mut self, context: &'a Context, ) -> Pin<Box<dyn Future<Output = Result> + 'a>>

Implementors§

Source§

impl<T: Input> InputObject for T