pub fn hscan<'a, K>(&'a mut self, key: &'a K) -> HScanBuilder<'a>
    where
        K: AsRef<[u8]>,
    {
        HScanBuilder::new(key.as_ref(), self)
    }
///Scan for fields in the hash set at `key`.
///# Example
///```
/// use darkredis::Connection;
/// use futures::StreamExt;
///# #[cfg_attr(feature = "runtime_tokio", tokio::main)]
///# #[cfg_attr(feature = "runtime_async_std", async_std::main)]
/// # async fn main() {
///
/// let mut connection = Connection::connect("127.0.0.1:6379").await.unwrap();
/// let key = b"hscan_test".to_vec();
/// connection.hset(&key, "one", "1").await.unwrap();
/// connection.hset(&key, "two", "2").await.unwrap();
/// connection.hset(&key, "three", "3").await.unwrap();
/// let results = connection.hscan(&key).run()
///   .collect::<Vec<(Vec<u8>, Vec<u8>)>>().await;
///
/// assert_eq!(results.len(), 3);
/// assert!(results.contains(&(b"one".to_vec(), b"1".to_vec())));
/// assert!(results.contains(&(b"two".to_vec(), b"2".to_vec())));
/// assert!(results.contains(&(b"three".to_vec(), b"3".to_vec())));
/// # connection.del(&key).await.unwrap();
/// # }
Scan for fields in the hash set at `key`.
Scan for fields in the hash set at ` key ` .
pub fn hscan<'a, K>(&'a mut self, key: &'a K) -> HScanBuilder<'a>
    where
        K: AsRef<[u8]>,
    {
        HScanBuilder::new(key.as_ref(), self)
    }
pub fn hscan < ' a , K > ( & ' a mut self , key : & ' a K ) -> HScanBuilder < ' a > where K : AsRef < [ u8 ] > , { HScanBuilder :: new ( key . as_ref ( ) , self ) }
Scan for fields in the hash set at `key`.
Scan for fields in the hash set at ` key ` .
&'a mut self
key
&'a K
&'a mut self
key
&'a K
example
```
use darkredis::Connection;
use futures::StreamExt.
` ` ` use darkredis :: Connection ; use futures :: StreamExt .
#[cfg_attr(feature = "runtime_tokio", tokio::main)]
None
#[cfg_attr(feature = "runtime_async_std", async_std::main)]
async fn main() {

let mut connection = Connection::connect("127.0.0.1:6379").await.unwrap();
let key = b"hscan_test".to_vec();
connection.hset(&key, "one", "1").await.unwrap();
connection.hset(&key, "two", "2").await.unwrap();
connection.hset(&key, "three", "3").await.unwrap();
let results = connection.hscan(&key).run()
.collect::, Vec)>>().await.


async fn main () { let mut connection = Connection :: connect ( " 127 . 0 . 0 . 1 : 6379 " ) . await . unwrap () ; let key = b " hscan_test " . to_vec () ; connection . hset ( &key " one " " 1 " ) . await . unwrap () ; connection . hset ( &key " two " " 2 " ) . await . unwrap () ; connection . hset ( &key " three " " 3 " ) . await . unwrap () ; let results = connection . hscan ( &key ) . run () . collect :: Vec ) >> () . await .