StreamResponseSpec

Trait StreamResponseSpec 

Source
pub trait StreamResponseSpec: Send + Sync {
    // Required methods
    fn chat_response<'life0, 'async_trait, S>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = impl Stream<Item = ChatResponse> + Send + 'static> + Send + 'async_trait>>
       where S: 'async_trait,
             Self: 'async_trait,
             'life0: 'async_trait;
    fn content<'life0, 'async_trait, S>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = impl Stream<Item = ChatResponse> + Send + 'static> + Send + 'async_trait>>
       where S: 'async_trait,
             Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn chat_response<'life0, 'async_trait, S>( &'life0 self, ) -> Pin<Box<dyn Future<Output = impl Stream<Item = ChatResponse> + Send + 'static> + Send + 'async_trait>>
where S: 'async_trait, Self: 'async_trait, 'life0: 'async_trait,

Source

fn content<'life0, 'async_trait, S>( &'life0 self, ) -> Pin<Box<dyn Future<Output = impl Stream<Item = ChatResponse> + Send + 'static> + Send + 'async_trait>>
where S: 'async_trait, 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", so this trait is not object safe.

Implementors§