Skip to main content

FetchClient

Trait FetchClient 

Source
pub trait FetchClient:
    Debug
    + Send
    + Sync {
    // Required methods
    fn fetch_records<'life0, 'async_trait>(
        &'life0 self,
        offset: i64,
        bytes: Range<i32>,
        max_wait_ms: i32,
    ) -> Pin<Box<dyn Future<Output = Result<FetchResult>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn topic(&self) -> &str;
}

Required Methods§

Source

fn fetch_records<'life0, 'async_trait>( &'life0 self, offset: i64, bytes: Range<i32>, max_wait_ms: i32, ) -> Pin<Box<dyn Future<Output = Result<FetchResult>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Fetch records.

Arguments are identical to [PartitionClient::fetch_records].

Source

fn topic(&self) -> &str

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl FetchClient for PartitionClient

Source§

fn fetch_records<'life0, 'async_trait>( &'life0 self, offset: i64, bytes: Range<i32>, max_wait_ms: i32, ) -> Pin<Box<dyn Future<Output = Result<FetchResult>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source§

fn topic(&self) -> &str

Implementors§