Trait destream::de::FromStream
source · [−]pub trait FromStream: Send + Sized {
type Context: Send;
fn from_stream<'life0, 'async_trait, D>(
context: Self::Context,
decoder: &'life0 mut D
) -> Pin<Box<dyn Future<Output = Result<Self, D::Error>> + Send + 'async_trait>>
where
D: 'async_trait + Decoder,
'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
.