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) -> SelfCreate 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. Seestd::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,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for IoRead<R>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for IoRead<R>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for IoRead<R>
fn from(t: T) -> TReturns the argument unchanged.
impl<T, U> Into<U> for IoRead<R>
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for IoRead<R>
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for IoRead<R>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>