pub trait ChatClientRequestSpec: Send + Sync {
// Required methods
fn call<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = impl CallResponseSpec> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn stream<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = impl StreamResponseSpec> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn user<T>(&mut self, text: T)
where T: Into<Bytes>;
fn system<T>(&mut self, text: T)
where T: Into<Bytes>;
}Required Methods§
fn call<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = impl CallResponseSpec> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn stream<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = impl StreamResponseSpec> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn user<T>(&mut self, text: T)
fn system<T>(&mut self, text: T)
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.