Trait AsyncParse

Source
pub trait AsyncParse<O, E, P> {
    // Required method
    fn parse<'life0, 'async_trait>(
        &'life0 mut self,
        p: P,
    ) -> Pin<Box<dyn Future<Output = Result<O, Error<E>>> + Send + 'async_trait>>
       where for<'a> P: Parser<&'a [u8], O, E> + Send + 'async_trait,
             Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn parse<'life0, 'async_trait>( &'life0 mut self, p: P, ) -> Pin<Box<dyn Future<Output = Result<O, Error<E>>> + Send + 'async_trait>>
where for<'a> P: Parser<&'a [u8], O, E> + Send + 'async_trait, Self: 'async_trait, 'life0: 'async_trait,

Implementations on Foreign Types§

Source§

impl<R: AsyncRead + Unpin + Send, O: Send, E, P> AsyncParse<O, E, P> for BufReader<R>

Source§

fn parse<'life0, 'async_trait>( &'life0 mut self, p: P, ) -> Pin<Box<dyn Future<Output = Result<O, Error<E>>> + Send + 'async_trait>>
where for<'a> P: Parser<&'a [u8], O, E> + Send + 'async_trait, Self: 'async_trait, 'life0: 'async_trait,

Implementors§

Source§

impl<R: AsyncRead + Unpin + Send, O: Send, E, P> AsyncParse<O, E, P> for nom_bufreader_rp::async_bufreader::BufReader<R>