Struct json_threat_protection::read::IoRead
source · pub struct IoRead<R: Read> { /* private fields */ }Expand description
A reader that reads from an object that implements std::io::Read.
§Performance
This reader uses the provided methods of Read to read from the underlying reader,
which results in a lot of checking on std::io::Error,
so it should be slower than super::SliceRead and super::StrRead.
Implementations§
Trait Implementations§
source§impl<R: Read> Read for IoRead<R>
impl<R: Read> Read for IoRead<R>
source§fn peek(&mut self) -> Result<Option<u8>, ReadError>
fn peek(&mut self) -> Result<Option<u8>, ReadError>
Peek the next character without consuming it.
source§fn skip_whitespace(&mut self) -> Result<(), ReadError>
fn skip_whitespace(&mut self) -> Result<(), ReadError>
Skip whitespace characters (
' ', '\t', '\n', '\r').Auto Trait Implementations§
impl<R> Freeze for IoRead<R>where
R: Freeze,
impl<R> RefUnwindSafe for IoRead<R>where
R: RefUnwindSafe,
impl<R> Send for IoRead<R>where
R: Send,
impl<R> Sync for IoRead<R>where
R: Sync,
impl<R> Unpin for IoRead<R>where
R: Unpin,
impl<R> UnwindSafe for IoRead<R>where
R: 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