Struct diny::deserializer::Deserializer [−][src]
pub struct Deserializer<F, R> {
pub format: F,
pub reader: R,
}
Fields
format: F
The (format)backend::FormatDecode used for decoding
reader: R
The (reader)io::AsyncBufRead to read deserialized bytes from
Implementations
Instantiates a new Deserializer from the format and reader
pub fn into_stream<D>(self) -> Deserialize<F, R, D> where
F: FormatDecode,
R: AsyncBufRead + Unpin,
D: Decodable,
pub fn into_stream<D>(self) -> Deserialize<F, R, D> where
F: FormatDecode,
R: AsyncBufRead + Unpin,
D: Decodable,
Converts the Deserializer into a stream of D
’s
pub fn deserialize<D>(&mut self) -> <D as AsyncDeserialize>::Future where
F: FormatDeserialize,
R: AsyncBufRead + Unpin,
D: AsyncDeserialize,
pub fn deserialize<D>(&mut self) -> <D as AsyncDeserialize>::Future where
F: FormatDeserialize,
R: AsyncBufRead + Unpin,
D: AsyncDeserialize,
Deserializes a single object of type D