pub trait Parser {
    type Block: Block;

    // Required method
    fn parse_block<'life0, 'life1, 'async_trait>(
        &'life0 self,
        bytes: &'life1 [u8]
    ) -> Pin<Box<dyn Future<Output = Result<<Self as Parser>::Block>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

Required Associated Types§

Required Methods§

source

fn parse_block<'life0, 'life1, 'async_trait>( &'life0 self, bytes: &'life1 [u8] ) -> Pin<Box<dyn Future<Output = Result<<Self as Parser>::Block>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§