Trait diny::AsyncDeserialize [−][src]
pub trait AsyncDeserialize: Decodable {
type Future: Future + Unpin;
fn deserialize<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<F, R>(format: &'r F, reader: &'r mut R) -> Self::Future where
F: FormatDeserialize,
R: AsyncBufRead + Unpin,
fn deserialize<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.