Trait destream::de::FromStream[][src]

pub trait FromStream: Send + Sized {
    type Context: Send;
    fn from_stream<'life0, 'async_trait, D: Decoder>(
        context: Self::Context,
        decoder: &'life0 mut D
    ) -> Pin<Box<dyn Future<Output = Result<Self, D::Error>> + Send + 'async_trait>>
    where
        D: 'async_trait,
        'life0: 'async_trait,
        Self: 'async_trait
; }
Expand description

This trait describes a value which can be decoded from a stream.

Based on serde::de::Deserialize.

Associated Types

The decoding context of this type, useful in situations where the stream to be decoded may be too large to hold in main memory.

Types intended to be stored entirely in main memory should use the unit context ().

Required methods

Parse this value using the given Decoder.

Implementations on Foreign Types

Implementors