pub trait DynBatch:
Send
+ Sync
+ 'static {
// Required methods
fn provider(&self) -> &ProviderId;
fn supported_urls(&self) -> BoxFuture<'_, SupportedUrls>;
fn do_start_batch(
&self,
options: BatchStartOptions,
) -> BoxFuture<'_, Result<BatchStartResult, ProviderError>>;
fn do_get_batch_status(
&self,
options: BatchOperationOptions,
) -> BoxFuture<'_, Result<BatchStatus, ProviderError>>;
fn do_get_batch_results(
&self,
options: BatchOperationOptions,
) -> BoxFuture<'_, Result<BatchResultStream, ProviderError>>;
fn supports_cancel_batch(&self) -> bool;
fn do_cancel_batch(
&self,
options: BatchOperationOptions,
) -> BoxFuture<'_, Result<BatchCancelResult, ProviderError>>;
fn supports_list_batches(&self) -> bool;
fn do_list_batches(
&self,
options: BatchListOptions,
) -> BoxFuture<'_, Result<BatchListResult, ProviderError>>;
}Expand description
Object-safe counterpart of Batch.
Required Methods§
Sourcefn provider(&self) -> &ProviderId
fn provider(&self) -> &ProviderId
See Batch::provider.
Sourcefn supported_urls(&self) -> BoxFuture<'_, SupportedUrls>
fn supported_urls(&self) -> BoxFuture<'_, SupportedUrls>
Sourcefn do_start_batch(
&self,
options: BatchStartOptions,
) -> BoxFuture<'_, Result<BatchStartResult, ProviderError>>
fn do_start_batch( &self, options: BatchStartOptions, ) -> BoxFuture<'_, Result<BatchStartResult, ProviderError>>
Sourcefn do_get_batch_status(
&self,
options: BatchOperationOptions,
) -> BoxFuture<'_, Result<BatchStatus, ProviderError>>
fn do_get_batch_status( &self, options: BatchOperationOptions, ) -> BoxFuture<'_, Result<BatchStatus, ProviderError>>
Sourcefn do_get_batch_results(
&self,
options: BatchOperationOptions,
) -> BoxFuture<'_, Result<BatchResultStream, ProviderError>>
fn do_get_batch_results( &self, options: BatchOperationOptions, ) -> BoxFuture<'_, Result<BatchResultStream, ProviderError>>
Sourcefn supports_cancel_batch(&self) -> bool
fn supports_cancel_batch(&self) -> bool
Sourcefn do_cancel_batch(
&self,
options: BatchOperationOptions,
) -> BoxFuture<'_, Result<BatchCancelResult, ProviderError>>
fn do_cancel_batch( &self, options: BatchOperationOptions, ) -> BoxFuture<'_, Result<BatchCancelResult, ProviderError>>
Sourcefn supports_list_batches(&self) -> bool
fn supports_list_batches(&self) -> bool
Sourcefn do_list_batches(
&self,
options: BatchListOptions,
) -> BoxFuture<'_, Result<BatchListResult, ProviderError>>
fn do_list_batches( &self, options: BatchListOptions, ) -> BoxFuture<'_, Result<BatchListResult, ProviderError>>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".