pub struct Retrying<S> {
pub inner: S,
pub policy: RetrySource,
}Expand description
A stream that asks again after a transient provider error (isRetryableAssistantError), up to the policy’s
retries with its backoff; an aborted request is never retried and the wait ends with the request’s signal.
Fields§
§inner: S§policy: RetrySourceTrait Implementations§
Source§impl<S: StreamFn> StreamFn for Retrying<S>
impl<S: StreamFn> StreamFn for Retrying<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 Retrying<S>
impl<S> !UnwindSafe for Retrying<S>
impl<S> Forget for Retrying<S>
impl<S> Freeze for Retrying<S>where
S: Freeze,
impl<S> Move for Retrying<S>
impl<S> Send for Retrying<S>where
S: Send,
impl<S> Sync for Retrying<S>where
S: Sync,
impl<S> Unpin for Retrying<S>where
S: Unpin,
impl<S> UnsafeUnpin for Retrying<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