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

pub trait BlockData: Clone + Send + Sync {
#[must_use]    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
;
#[must_use] fn persist<'life0, 'life1, 'async_trait, W: AsyncWrite + Send + Unpin>(
        &'life0 self,
        sink: &'life1 mut W
    ) -> Pin<Box<dyn Future<Output = TCResult<u64>> + Send + 'async_trait>>
    where
        W: 'async_trait,
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn size<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = TCResult<u64>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }

The contents of a Block.

Required methods

#[must_use]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, 
[src]

#[must_use]fn persist<'life0, 'life1, 'async_trait, W: AsyncWrite + Send + Unpin>(
    &'life0 self,
    sink: &'life1 mut W
) -> Pin<Box<dyn Future<Output = TCResult<u64>> + Send + 'async_trait>> where
    W: 'async_trait,
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 
[src]

#[must_use]fn size<'life0, 'async_trait>(
    &'life0 self
) -> Pin<Box<dyn Future<Output = TCResult<u64>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Loading content...

Implementations on Foreign Types

impl BlockData for Value[src]

Loading content...

Implementors

Loading content...