Struct serde_cbor::de::IoRead
[−]
[src]
pub struct IoRead<R> where
R: Read, { /* fields omitted */ }
CBOR input source that reads from a std::io input stream.
Methods
impl<R> IoRead<R> where
R: Read,
[src]
R: Read,
pub fn new(reader: R) -> IoRead<R>
[src]
Creates a new CBOR input source to read from a std::io input stream.
Trait Implementations
impl<'de, R> Read<'de> for IoRead<R> where
R: Read,
[src]
R: Read,
fn next(&mut self) -> Result<Option<u8>>
[src]
fn peek(&mut self) -> Result<Option<u8>>
[src]
fn read(
&mut self,
n: usize,
scratch: &mut Vec<u8>,
scratch_offset: usize
) -> Result<Reference<'de>>
[src]
&mut self,
n: usize,
scratch: &mut Vec<u8>,
scratch_offset: usize
) -> Result<Reference<'de>>