Struct guestmem::ranges::PagedRangeReader
source · pub struct PagedRangeReader<'a> { /* private fields */ }
Expand description
A MemoryRead
implementation for PagedRange
.
Trait Implementations§
source§impl<'a> MemoryRead for PagedRangeReader<'a>
impl<'a> MemoryRead for PagedRangeReader<'a>
fn read(&mut self, data: &mut [u8]) -> Result<&mut Self, AccessError>
fn skip(&mut self, len: usize) -> Result<&mut Self, AccessError>
fn len(&self) -> usize
fn read_plain<T: AsBytes + FromBytes>(&mut self) -> Result<T, AccessError>
fn read_n<T: AsBytes + FromBytes + Copy>( &mut self, len: usize, ) -> Result<Vec<T>, AccessError>
fn read_all(&mut self) -> Result<Vec<u8>, AccessError>
fn limit(self, len: usize) -> Limit<Self>where
Self: Sized,
Auto Trait Implementations§
impl<'a> Freeze for PagedRangeReader<'a>
impl<'a> !RefUnwindSafe for PagedRangeReader<'a>
impl<'a> Send for PagedRangeReader<'a>
impl<'a> Sync for PagedRangeReader<'a>
impl<'a> Unpin for PagedRangeReader<'a>
impl<'a> !UnwindSafe for PagedRangeReader<'a>
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