Struct IoRead

pub struct IoRead<R>
where
    R: Read, { /* private fields */ }

JSON input source that reads from a std::io input stream.

Implementations

impl<R> IoRead<R> where R: Read,

fn new(reader: R) -> Self

Create a JSON input source to read from a std::io input stream.

When reading from a source against which short reads are not efficient, such as a File, you will want to apply your own buffering because serde_json will not buffer the input. See std::io::BufReader.

Trait Implementations

impl<'de, R> Read<'de> for IoRead<R> where R: Read,

Auto Trait Implementations

impl<R> Freeze for IoRead<R> where LineColIterator<Bytes<R>>: Freeze,

impl<R> RefUnwindSafe for IoRead<R> where LineColIterator<Bytes<R>>: RefUnwindSafe,

impl<R> Send for IoRead<R> where LineColIterator<Bytes<R>>: Send,

impl<R> Sync for IoRead<R> where LineColIterator<Bytes<R>>: Sync,

impl<R> Unpin for IoRead<R> where LineColIterator<Bytes<R>>: Unpin,

impl<R> UnsafeUnpin for IoRead<R> where LineColIterator<Bytes<R>>: UnsafeUnpin,

impl<R> UnwindSafe for IoRead<R> where LineColIterator<Bytes<R>>: UnwindSafe,

Blanket Implementations

impl<T> Any for IoRead<R> where T: 'static + ?Sized,

impl<T> Borrow<T> for IoRead<R> where T: ?Sized,

impl<T> BorrowMut<T> for IoRead<R> where T: ?Sized,

impl<T> From<T> for IoRead<R>

impl<T, U> Into<U> for IoRead<R> where U: From<T>,

impl<T, U> TryFrom<U> for IoRead<R> where U: Into<T>,

impl<T, U> TryInto<U> for IoRead<R> where U: TryFrom<T>,