pub trait Decode: Sized {
type Error: From<Error> + Error + Send + Sync + 'static;
// Required method
fn decode<R>(
reader: &mut R,
) -> impl Future<Output = Result<Self, Self::Error>> + MaybeSend
where R: SeqRead;
}Required Associated Types§
Required Methods§
fn decode<R>(
reader: &mut R,
) -> impl Future<Output = Result<Self, Self::Error>> + MaybeSendwhere
R: SeqRead,
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.