[][src]Trait bee_storage::access::AsStream

pub trait AsStream<'a, K, V>: StorageBackend {
    type Stream: Stream<Item = (K, V)>;
#[must_use]    pub fn stream<'async_trait>(
        &'a self
    ) -> Pin<Box<dyn Future<Output = Result<Self::Stream, Self::Error>> + Send + 'async_trait>>
    where
        'a: 'async_trait,
        Self: 'async_trait
; }

AsStream<'a, K, V> trait extends the StorageBackend with stream operation for the (key: K, value: V) pair; therefore, it should be explicitly implemented for the corresponding StorageBackend.

Associated Types

type Stream: Stream<Item = (K, V)>[src]

Type to iterate through the <K, V> collection.

Loading content...

Required methods

#[must_use]pub fn stream<'async_trait>(
    &'a self
) -> Pin<Box<dyn Future<Output = Result<Self::Stream, Self::Error>> + Send + 'async_trait>> where
    'a: 'async_trait,
    Self: 'async_trait, 
[src]

Returns a Stream object for the provided <K, V> collection.

Loading content...

Implementors

Loading content...