pub struct RetryLayerService { /* private fields */ }Trait Implementations§
Source§impl<S: LlmProvider> LayerService<S> for RetryLayerService
impl<S: LlmProvider> LayerService<S> for RetryLayerService
fn complete<'life0, 'life1, 'async_trait>(
&'life0 self,
inner: &'life1 S,
request: CompletionRequest,
options: RequestOptions,
) -> Pin<Box<dyn Future<Output = Result<CompletionResponse, ProviderError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn complete_stream<'life0, 'life1, 'async_trait>(
&'life0 self,
inner: &'life1 S,
request: CompletionRequest,
options: RequestOptions,
) -> Pin<Box<dyn Future<Output = Result<Pin<Box<dyn Stream<Item = Result<StreamEvent, ProviderError>> + Send>>, ProviderError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Auto Trait Implementations§
impl Freeze for RetryLayerService
impl RefUnwindSafe for RetryLayerService
impl Send for RetryLayerService
impl Sync for RetryLayerService
impl Unpin for RetryLayerService
impl UnsafeUnpin for RetryLayerService
impl UnwindSafe for RetryLayerService
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