Struct redis_sk::AsyncIter[][src]

pub struct AsyncIter<'a, T: FromRedisValue + 'a> { /* fields omitted */ }
Expand description

Represents a redis iterator that can be used with async connections.

Implementations

con.sadd("my_set", 42i32).await?;
con.sadd("my_set", 43i32).await?;
let mut iter: redis::AsyncIter<i32> = con.sscan("my_set").await?;
while let Some(element) = iter.next_item().await {
    assert!(element == 42 || element == 43);
}

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.