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]
impl<R> IoRead<R> where
R: Read,
pub fn new(reader: R) -> IoRead<R>
[src]
pub fn new(reader: R) -> IoRead<R>
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]
impl<'de, R> Read<'de> for IoRead<R> where
R: Read,
fn next(&mut self) -> Result<Option<u8>>
[src]
fn next(&mut self) -> Result<Option<u8>>
fn peek(&mut self) -> Result<Option<u8>>
[src]
fn peek(&mut self) -> Result<Option<u8>>
fn read(
&mut self,
n: usize,
scratch: &mut Vec<u8>,
scratch_offset: usize
) -> Result<Reference<'de>>
[src]
fn read(
&mut self,
n: usize,
scratch: &mut Vec<u8>,
scratch_offset: usize
) -> Result<Reference<'de>>
fn read_into(&mut self, buf: &mut [u8]) -> Result<()>
[src]
fn read_into(&mut self, buf: &mut [u8]) -> Result<()>
fn discard(&mut self)
[src]
fn discard(&mut self)
fn offset(&self) -> u64
[src]
fn offset(&self) -> u64