pub trait BucketSource {
// Required method
fn scan(
&self,
repo: &RepoId,
prefix: &str,
last: Option<&str>,
limit: u32,
) -> impl Future<Output = Result<Scan, StoreError>> + MaybeSend;
}Expand description
A source owns its key class and partition. It scans the normalized prefix
range strictly after last, returning full names in key order. more
means additional rows may remain beyond the last fetched key, and
requires at least one row: a scan with more and no rows fails the page
as Corrupt.
Required Methods§
fn scan( &self, repo: &RepoId, prefix: &str, last: Option<&str>, limit: u32, ) -> impl Future<Output = Result<Scan, StoreError>> + MaybeSend
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".