Trait 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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so 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§