pub struct ReadFn<R> { /* private fields */ }Expand description
Reader created by read_fn.
Trait Implementations§
Source§impl<R> Read for ReadFn<R>
impl<R> Read for ReadFn<R>
Source§fn read(&mut self, buf: &mut [u8]) -> Result<usize>
fn read(&mut self, buf: &mut [u8]) -> Result<usize>
Pull some bytes from this source into the specified buffer, returning
how many bytes were read.
Source§fn read_exact(&mut self, buf: &mut [u8]) -> Result<()>
fn read_exact(&mut self, buf: &mut [u8]) -> Result<()>
Read the exact number of bytes required to fill
buf.Source§fn read_buf(&mut self, buf: BorrowedCursor<'_>) -> Result<()>
fn read_buf(&mut self, buf: BorrowedCursor<'_>) -> Result<()>
Pull some bytes from this source into the specified buffer. Read more
Source§fn read_buf_exact(&mut self, cursor: BorrowedCursor<'_>) -> Result<()>
fn read_buf_exact(&mut self, cursor: BorrowedCursor<'_>) -> Result<()>
Reads the exact number of bytes required to fill
cursor. Read moreSource§fn by_ref(&mut self) -> &mut Selfwhere
Self: Sized,
fn by_ref(&mut self) -> &mut Selfwhere
Self: Sized,
Creates a “by reference” adapter for this instance of
Read. Read moreAuto Trait Implementations§
impl<R> Freeze for ReadFn<R>where
R: Freeze,
impl<R> RefUnwindSafe for ReadFn<R>where
R: RefUnwindSafe,
impl<R> Send for ReadFn<R>where
R: Send,
impl<R> Sync for ReadFn<R>where
R: Sync,
impl<R> Unpin for ReadFn<R>where
R: Unpin,
impl<R> UnsafeUnpin for ReadFn<R>where
R: UnsafeUnpin,
impl<R> UnwindSafe for ReadFn<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