pub trait Deserialize {
// Required method
fn deserialize<'async_trait>(
buffer: Cursor<Vec<u8>>,
) -> Pin<Box<dyn Future<Output = Result<Self, ProtocolError>> + Send + 'async_trait>>
where Self: Sized + 'async_trait;
}Required Methods§
fn deserialize<'async_trait>(
buffer: Cursor<Vec<u8>>,
) -> Pin<Box<dyn Future<Output = Result<Self, ProtocolError>> + Send + 'async_trait>>where
Self: Sized + 'async_trait,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".