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
R: AsyncRead + AsyncBufRead + Unpin,
F: FormatDeserialize;
}
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
R: AsyncRead + AsyncBufRead + Unpin,
F: FormatDeserialize,
fn deserialize<F, R>(format: &'r F, reader: &'r mut R) -> Self::Future where
R: AsyncRead + AsyncBufRead + Unpin,
F: FormatDeserialize,
Attempt to deserialize the type asynchronously for the indicated format via the provided asynchronous reader.