Struct lib_resp::Decoder
[−]
[src]
pub struct Decoder<T: BufRead> { /* fields omitted */ }
Streaming decoder implementation for BufRead implementors
Methods
impl<T> Decoder<T> where
T: BufRead,
[src]
T: BufRead,
pub fn new(src: T) -> Self
[src]
pub fn decode(&mut self) -> Result<Option<Value>>
[src]
Attempts to read a single value from the stream, then parse it.
pub fn decode_all(&mut self) -> Result<Option<Vec<Value>>>
[src]
Attempts to read all values from the stream, then parse them.
NOTE: Parsed values will be stored until the stream is empty.