pub struct ProviderStream { /* private fields */ }Expand description
StreamFn over the provider components of an ExtensionSet.
Implementations§
Source§impl ProviderStream
impl ProviderStream
Sourcepub const fn new(extensions: Arc<ExtensionSet>) -> Self
pub const fn new(extensions: Arc<ExtensionSet>) -> Self
Dispatches to the providers in extensions.
Trait Implementations§
Source§impl Clone for ProviderStream
impl Clone for ProviderStream
Source§impl Debug for ProviderStream
impl Debug for ProviderStream
Source§impl StreamFn for ProviderStream
impl StreamFn for ProviderStream
Source§fn stream(
&self,
request: StreamRequest,
) -> BoxStream<'static, AssistantMessageEvent>
fn stream( &self, request: StreamRequest, ) -> BoxStream<'static, AssistantMessageEvent>
Starts one request.
Auto Trait Implementations§
impl !RefUnwindSafe for ProviderStream
impl !UnwindSafe for ProviderStream
impl Freeze for ProviderStream
impl Send for ProviderStream
impl Sync for ProviderStream
impl Unpin for ProviderStream
impl UnsafeUnpin for ProviderStream
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more