pub struct JsonLinesStream<R, T> { /* private fields */ }Available on crate feature
async only.Expand description
An asynchronous stream over the lines of an AsyncBufRead value R
that decodes each line as JSON of type T.
This stream yields items of type Result<T, std::io::Error>. Errors
occurr under the same conditions as for
AsyncJsonLinesReader::read().
Streams of this type are returned by
AsyncJsonLinesReader::read_all() and
AsyncBufReadJsonLines::json_lines().
Trait Implementations§
Source§impl<R: AsyncBufRead, T> Stream for JsonLinesStream<R, T>where
T: DeserializeOwned,
impl<R: AsyncBufRead, T> Stream for JsonLinesStream<R, T>where
T: DeserializeOwned,
impl<'__pin, R, T> Unpin for JsonLinesStream<R, T>where
__Origin<'__pin, R, T>: Unpin,
Auto Trait Implementations§
impl<R, T> Freeze for JsonLinesStream<R, T>where
R: Freeze,
impl<R, T> RefUnwindSafe for JsonLinesStream<R, T>where
R: RefUnwindSafe,
T: RefUnwindSafe,
impl<R, T> Send for JsonLinesStream<R, T>
impl<R, T> Sync for JsonLinesStream<R, T>
impl<R, T> UnwindSafe for JsonLinesStream<R, T>where
R: UnwindSafe,
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more