Struct grin_core::ser::BufReader [−][src]
pub struct BufReader<'a, B: Buf> { /* fields omitted */ }
Protocol version-aware wrapper around a Buf
impl
Implementations
Trait Implementations
impl<'a, B: Buf> Reader for BufReader<'a, B>
[src]
impl<'a, B: Buf> Reader for BufReader<'a, B>
[src]fn read_bytes_len_prefix(&mut self) -> Result<Vec<u8>, Error>
[src]
fn read_bytes_len_prefix(&mut self) -> Result<Vec<u8>, Error>
[src]Read a u64 len prefix followed by that number of exact bytes.
fn read_fixed_bytes(&mut self, len: usize) -> Result<Vec<u8>, Error>
[src]
fn read_fixed_bytes(&mut self, len: usize) -> Result<Vec<u8>, Error>
[src]Read a fixed number of bytes from the underlying reader.
fn expect_u8(&mut self, val: u8) -> Result<u8, Error>
[src]
fn expect_u8(&mut self, val: u8) -> Result<u8, Error>
[src]Consumes a byte from the reader, producing an error if it doesn’t have the expected value Read more
fn protocol_version(&self) -> ProtocolVersion
[src]
fn protocol_version(&self) -> ProtocolVersion
[src]Access to underlying protocol version to support version specific deserialization logic. Read more
Auto Trait Implementations
impl<'a, B> RefUnwindSafe for BufReader<'a, B> where
B: RefUnwindSafe,
B: RefUnwindSafe,
impl<'a, B> Send for BufReader<'a, B> where
B: Send,
B: Send,
impl<'a, B> Sync for BufReader<'a, B> where
B: Sync,
B: Sync,
impl<'a, B> Unpin for BufReader<'a, B>
impl<'a, B> !UnwindSafe for BufReader<'a, B>
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<T> UnsafeAny for T where
T: Any,
T: Any,