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

pub trait BlockData: FromStream<Context = ()> + Clone + Send + Sync + 'static {
    fn ext() -> &'static str;
fn max_size() -> u64; #[must_use] 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
, { ... }
#[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<'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
, { ... }
#[must_use] 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
, { ... }
#[must_use] 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

fn ext() -> &'static str[src]

fn max_size() -> u64[src]

Loading content...

Provided methods

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

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

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

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

Loading content...

Implementations on Foreign Types

impl BlockData for Value[src]

fn ext() -> &'static str[src]

fn max_size() -> u64[src]

Loading content...

Implementors

Loading content...