Skip to main content

CallPlugin

Trait CallPlugin 

Source
pub trait CallPlugin:
    Plugin
    + Send
    + Sync {
    // Required method
    fn start<'life0, 'async_trait>(
        &'life0 self,
        peer_input_text_rx: Receiver<PeerInputText>,
        cognitive_output_text_tx: Sender<CognitiveOutputText>,
        last_voice_time_rx: Receiver<Instant>,
        cognitive_speaking_rx: Receiver<bool>,
        call_active_tx: Sender<bool>,
    ) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn start<'life0, 'async_trait>( &'life0 self, peer_input_text_rx: Receiver<PeerInputText>, cognitive_output_text_tx: Sender<CognitiveOutputText>, last_voice_time_rx: Receiver<Instant>, cognitive_speaking_rx: Receiver<bool>, call_active_tx: Sender<bool>, ) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§