pub trait ChatPlugin:
Plugin
+ Send
+ Sync {
// Required method
fn start<'life0, 'async_trait>(
&'life0 self,
peer_input_text_tx: Sender<PeerInputText>,
cognitive_output_text_rx: Receiver<CognitiveOutputText>,
cognitive_state_rx: Receiver<CognitiveStateUpdate>,
add_document_tx: Option<Sender<AddDocumentRequest>>,
) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
// Provided method
fn channel_context_schema() -> Schema
where Self: Sized { ... }
}Required Methods§
fn start<'life0, 'async_trait>(
&'life0 self,
peer_input_text_tx: Sender<PeerInputText>,
cognitive_output_text_rx: Receiver<CognitiveOutputText>,
cognitive_state_rx: Receiver<CognitiveStateUpdate>,
add_document_tx: Option<Sender<AddDocumentRequest>>,
) -> Pin<Box<dyn Future<Output = Result<(), String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Provided Methods§
fn channel_context_schema() -> Schemawhere
Self: Sized,
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".