Struct serde_amqp::read::SliceReader
source · pub struct SliceReader<'s> { /* private fields */ }
Expand description
A reader for a slice of bytes
Implementations§
Trait Implementations§
source§impl<'s> Debug for SliceReader<'s>
impl<'s> Debug for SliceReader<'s>
source§impl<'s> Read<'s> for SliceReader<'s>
impl<'s> Read<'s> for SliceReader<'s>
source§fn peek_bytes(&mut self, n: usize) -> Result<Option<&[u8]>, Error>
fn peek_bytes(&mut self, n: usize) -> Result<Option<&[u8]>, Error>
Peek
n
number of bytes without consumingsource§fn forward_read_bytes<V>(
&mut self,
len: usize,
visitor: V,
) -> Result<V::Value, Error>where
V: Visitor<'s>,
fn forward_read_bytes<V>(
&mut self,
len: usize,
visitor: V,
) -> Result<V::Value, Error>where
V: Visitor<'s>,
Forward bytes to visitor
source§fn forward_read_str<V>(
&mut self,
len: usize,
visitor: V,
) -> Result<V::Value, Error>where
V: Visitor<'s>,
fn forward_read_str<V>(
&mut self,
len: usize,
visitor: V,
) -> Result<V::Value, Error>where
V: Visitor<'s>,
Forward str to visitor
Auto Trait Implementations§
impl<'s> Freeze for SliceReader<'s>
impl<'s> RefUnwindSafe for SliceReader<'s>
impl<'s> Send for SliceReader<'s>
impl<'s> Sync for SliceReader<'s>
impl<'s> Unpin for SliceReader<'s>
impl<'s> UnwindSafe for SliceReader<'s>
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