pub struct RateLimited<R> { /* private fields */ }Implementations§
Trait Implementations§
Source§impl<Input, Output, R> Runnable<Input, Output> for RateLimited<R>
impl<Input, Output, R> Runnable<Input, Output> for RateLimited<R>
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<'a>( &'a self, input: Input, ) -> BoxStream<'a, Result<StreamEvent, WesichainError>>
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,
fn to_serializable(&self) -> Option<SerializableRunnable>
Auto Trait Implementations§
impl<R> Freeze for RateLimited<R>where
R: Freeze,
impl<R> !RefUnwindSafe for RateLimited<R>
impl<R> Send for RateLimited<R>where
R: Send,
impl<R> Sync for RateLimited<R>where
R: Sync,
impl<R> Unpin for RateLimited<R>where
R: Unpin,
impl<R> UnsafeUnpin for RateLimited<R>where
R: UnsafeUnpin,
impl<R> !UnwindSafe for RateLimited<R>
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