Trait diny::AsyncDeserialize [−][src]
pub trait AsyncDeserialize: Decodable {
type Future: Future + Unpin;
fn deserialize<'r, F, R>(format: &'r F, reader: &'r mut R) -> Self::Future
where
R: AsyncRead + AsyncBufRead + Unpin,
F: FormatDeserialize<'r>;
}
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
R: AsyncRead + AsyncBufRead + Unpin,
F: FormatDeserialize<'r>,
fn deserialize<'r, F, R>(format: &'r F, reader: &'r mut R) -> Self::Future where
R: AsyncRead + AsyncBufRead + Unpin,
F: FormatDeserialize<'r>,
Attempt to deserialize the type asynchronusly for the indicated format via the provided asynchronous reader.