Trait destream::de::FromStream
source · pub trait FromStream: Send + Sized {
type Context: Send;
// Required method
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,
Self: 'async_trait,
'life0: 'async_trait;
}
Expand description
This trait describes a value which can be decoded from a stream.
Based on serde::de::Deserialize
.
Required Associated Types§
Required Methods§
Object Safety§
This trait is not object safe.