Trait tc_transact::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§