pub struct RunnableWithFallbacks<Input, Output> { /* private fields */ }Implementations§
Trait Implementations§
Source§impl<Input, Output> Runnable<Input, Output> for RunnableWithFallbacks<Input, Output>
impl<Input, Output> Runnable<Input, Output> for RunnableWithFallbacks<Input, Output>
fn invoke<'life0, 'async_trait>(
&'life0 self,
input: Input,
) -> Pin<Box<dyn Future<Output = Result<Output, WesichainError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn stream( &self, input: Input, ) -> BoxStream<'_, Result<StreamEvent, WesichainError>>
fn to_serializable(&self) -> Option<SerializableRunnable>
fn batch<'life0, 'async_trait>(
&'life0 self,
inputs: Vec<Input>,
) -> Pin<Box<dyn Future<Output = Vec<Result<Output, WesichainError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn abatch<'life0, 'async_trait>(
&'life0 self,
inputs: Vec<Input>,
) -> Pin<Box<dyn Future<Output = Vec<Result<Output, WesichainError>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Auto Trait Implementations§
impl<Input, Output> Freeze for RunnableWithFallbacks<Input, Output>
impl<Input, Output> !RefUnwindSafe for RunnableWithFallbacks<Input, Output>
impl<Input, Output> Send for RunnableWithFallbacks<Input, Output>
impl<Input, Output> Sync for RunnableWithFallbacks<Input, Output>
impl<Input, Output> Unpin for RunnableWithFallbacks<Input, Output>
impl<Input, Output> UnsafeUnpin for RunnableWithFallbacks<Input, Output>
impl<Input, Output> !UnwindSafe for RunnableWithFallbacks<Input, Output>
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