Trait tc_transact::IntoView
source · pub trait IntoView<'en, D: Dir> {
type Txn: Transaction<D>;
type View: IntoStream<'en> + Sized + 'en;
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§
sourcetype Txn: Transaction<D>
type Txn: Transaction<D>
The type of Transaction
which this state supports
sourcetype View: IntoStream<'en> + Sized + 'en
type View: IntoStream<'en> + Sized + 'en
The type of encodable view returned by into_view