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§
Sourcefn 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 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
].