pub struct Keyed<S> {
pub inner: S,
pub keys: Keys,
}Expand description
A stream whose requests carry the key of their model’s provider, resolved per request, unless the caller set one.
Fields§
§inner: S§keys: KeysTrait Implementations§
Source§impl<S: StreamFn> StreamFn for Keyed<S>
impl<S: StreamFn> StreamFn for Keyed<S>
fn stream<'a>( &'a self, model: &'a Model, context: &'a TranscriptContext, options: &'a SimpleStreamOptions, sink: &'a mut EventSink<'_>, ) -> BoxFuture<'a, AssistantMessage>
Auto Trait Implementations§
impl<S> !RefUnwindSafe for Keyed<S>
impl<S> !UnwindSafe for Keyed<S>
impl<S> Forget for Keyed<S>
impl<S> Freeze for Keyed<S>where
S: Freeze,
impl<S> Move for Keyed<S>
impl<S> Send for Keyed<S>where
S: Send,
impl<S> Sync for Keyed<S>where
S: Sync,
impl<S> Unpin for Keyed<S>where
S: Unpin,
impl<S> UnsafeUnpin for Keyed<S>where
S: UnsafeUnpin,
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