Skip to main content

DynBatch

Trait DynBatch 

Source
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§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T: Batch> DynBatch for T