[][src]Struct redis_ac::RedisScanStream

pub struct RedisScanStream<C, RV> { /* fields omitted */ }

Stream over items of scan commands.

Methods

impl<C, RV> RedisScanStream<C, RV> where
    C: ConnectionLike + Send + 'static,
    RV: FromRedisValue + Send + 'static, 
[src]

pub fn all(self) -> RedisScanAll<C, RV>[src]

Collects all the results of scanning.

use futures::prelude::*;
use redis_ac::Commands;

let client = redis::Client::open("redis://127.0.0.1").unwrap();
let connect = client.get_async_connection();

let f = connect.and_then(|con|{
    con.scan_match("key*")
        .all()
        .map(|(_, items): (_, Vec<String>)| {
            // All items retrieved by `scan_match`.
            println!("{:?}", items)
        })
}).map_err(|e| eprintln!("{}", e));

tokio::run(f);

Trait Implementations

impl<C, RV> Stream for RedisScanStream<C, RV> where
    C: ConnectionLike + Send + 'static,
    RV: FromRedisValue + Send + 'static, 
[src]

type Item = (Option<C>, Option<RV>)

The type of item this stream will yield on success.

type Error = RedisError

The type of error this stream may generate.

Auto Trait Implementations

impl<C, RV> Send for RedisScanStream<C, RV> where
    C: Send,
    RV: Send

impl<C, RV> !Sync for RedisScanStream<C, RV>

impl<C, RV> Unpin for RedisScanStream<C, RV> where
    C: Unpin,
    RV: Unpin

impl<C, RV> !UnwindSafe for RedisScanStream<C, RV>

impl<C, RV> !RefUnwindSafe for RedisScanStream<C, RV>

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]