Skip to main content

Decoder

Trait Decoder 

Source
pub trait Decoder: Send + Sync {
    // Required method
    fn decode_stream<'life0, 'async_trait>(
        &'life0 self,
        input: BoxStream<'static, Bytes>,
    ) -> Pin<Box<dyn Future<Output = PipeResult<BoxStream<'static, Value>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Decoder trait for stream decoding

Required Methods§

Source

fn decode_stream<'life0, 'async_trait>( &'life0 self, input: BoxStream<'static, Bytes>, ) -> Pin<Box<dyn Future<Output = PipeResult<BoxStream<'static, Value>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Decode a byte stream into JSON values

Implementors§