Trait IntoView

Source
pub trait IntoView<'en, FE> {
    type Txn: Transaction<FE>;
    type View: IntoStream<'en> + Sized + 'en;

    // Required method
    fn into_view<'async_trait>(
        self,
        txn: Self::Txn,
    ) -> Pin<Box<dyn Future<Output = TCResult<Self::View>> + Send + 'async_trait>>
       where Self: 'async_trait;
}
Expand description

Access a view which can be encoded with en::IntoStream.

Required Associated Types§

Source

type Txn: Transaction<FE>

The type of Transaction which this state supports

Source

type View: IntoStream<'en> + Sized + 'en

The type of encodable view returned by into_view

Required Methods§

Source

fn into_view<'async_trait>( self, txn: Self::Txn, ) -> Pin<Box<dyn Future<Output = TCResult<Self::View>> + Send + 'async_trait>>
where Self: 'async_trait,

Return a View which can be encoded with en::IntoStream.

Implementors§