pub trait Decode: Sized {
// Required method
fn decode_from<'life0, 'async_trait, R>(
config: &'life0 Config,
reader: R,
) -> Pin<Box<dyn Future<Output = Result<Self>> + Send + 'async_trait>>
where R: Read + Unpin + Send + 'async_trait,
Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Trait for decoding values
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.