Trait opendal::raw::adapters::kv::Scan

source ·
pub trait Scan: Send + Sync + Unpin {
    // Required method
    fn next(
        &mut self,
    ) -> impl Future<Output = Result<Option<String>>> + MaybeSend;
}
Expand description

Scan is the async iterator returned by Adapter::scan.

Required Methods§

source

fn next(&mut self) -> impl Future<Output = Result<Option<String>>> + MaybeSend

Fetch the next key in the current key prefix

Ok(None) means no further key will be returned

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Scan for ()

A noop implementation of Scan

source§

async fn next(&mut self) -> Result<Option<String>>

source§

impl<T: ScanDyn + ?Sized> Scan for Box<T>

source§

async fn next(&mut self) -> Result<Option<String>>

Implementors§