Trait diny_core::AsyncDeserialize [−][src]
pub trait AsyncDeserialize: Decodable {
type Future: Future<Output = Result<Self, F::Error>> + Unpin;
fn deserialize<'r, F, R>(format: &'r F, reader: &'r mut R) -> Self::Future
where
F: FormatDeserialize,
R: AsyncBufRead + Unpin;
}
Expand description
Deserialize a data structure asynchronously.
Associated Types
Required methods
fn deserialize<'r, F, R>(format: &'r F, reader: &'r mut R) -> Self::Future where
F: FormatDeserialize,
R: AsyncBufRead + Unpin,
fn deserialize<'r, F, R>(format: &'r F, reader: &'r mut R) -> Self::Future where
F: FormatDeserialize,
R: AsyncBufRead + Unpin,
Attempt to deserialize the type asynchronously for the indicated format via the provided asynchronous reader.