Skip to main content

Interviewer

Trait Interviewer 

Source
pub trait Interviewer: Send + Sync {
    // Required method
    fn ask<'life0, 'async_trait>(
        &'life0 self,
        question: Question,
    ) -> Pin<Box<dyn Future<Output = Answer> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Trait for presenting questions to humans and getting answers.

Required Methods§

Source

fn ask<'life0, 'async_trait>( &'life0 self, question: Question, ) -> Pin<Box<dyn Future<Output = Answer> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Ask a question and wait for an answer.

Implementors§