Trait tc_transact::fs::BlockData[][src]

pub trait BlockData: FromStream<Context = ()> + Clone + Send + Sync + 'static {
    fn ext() -> &'static str;
fn max_size() -> u64; fn hash<'en, 'async_trait>(
        &'en self
    ) -> Pin<Box<dyn Future<Output = TCResult<Bytes>> + Send + 'async_trait>>
    where
        Self: ToStream<'en>,
        'en: 'async_trait,
        Self: 'async_trait
, { ... }
fn load<'async_trait, S: AsyncReadExt + Send + Unpin>(
        source: S
    ) -> Pin<Box<dyn Future<Output = TCResult<Self>> + Send + 'async_trait>>
    where
        S: 'async_trait,
        Self: 'async_trait
, { ... }
fn persist<'en, 'life0, 'async_trait, W: AsyncWrite + Send + Unpin>(
        &'en self,
        sink: &'life0 mut W
    ) -> Pin<Box<dyn Future<Output = TCResult<u64>> + Send + 'async_trait>>
    where
        Self: ToStream<'en>,
        'en: 'async_trait,
        W: 'async_trait,
        'life0: 'async_trait,
        Self: 'async_trait
, { ... }
fn into_size<'en, 'async_trait>(
        self
    ) -> Pin<Box<dyn Future<Output = TCResult<u64>> + Send + 'async_trait>>
    where
        Self: Clone + IntoStream<'en> + 'en,
        'en: 'async_trait,
        Self: 'async_trait
, { ... }
fn size<'en, 'async_trait>(
        &'en self
    ) -> Pin<Box<dyn Future<Output = TCResult<u64>> + Send + 'async_trait>>
    where
        Self: ToStream<'en>,
        'en: 'async_trait,
        Self: 'async_trait
, { ... } }
Expand description

The contents of a Block.

Required methods

Provided methods

Implementations on Foreign Types

Implementors