pub struct OwnedRequestBuffers { /* private fields */ }
Expand description
A memory range.
Implementations§
Source§impl OwnedRequestBuffers
impl OwnedRequestBuffers
Sourcepub fn new_unaligned(gpns: &[u64], offset: usize, len: usize) -> Self
pub fn new_unaligned(gpns: &[u64], offset: usize, len: usize) -> Self
A new memory range with the given guest page numbers, offset by offset
bytes, and of len
bytes length.
Sourcepub fn linear(offset: u64, len: usize, is_write: bool) -> Self
pub fn linear(offset: u64, len: usize, is_write: bool) -> Self
A new memory range containing the linear address range from
offset..offset+len
.
Sourcepub fn buffer<'a>(&'a self, guest_memory: &'a GuestMemory) -> RequestBuffers<'a>
pub fn buffer<'a>(&'a self, guest_memory: &'a GuestMemory) -> RequestBuffers<'a>
A RequestBuffers
referencing this memory range.
Trait Implementations§
Source§impl Clone for OwnedRequestBuffers
impl Clone for OwnedRequestBuffers
Source§fn clone(&self) -> OwnedRequestBuffers
fn clone(&self) -> OwnedRequestBuffers
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for OwnedRequestBuffers
impl RefUnwindSafe for OwnedRequestBuffers
impl Send for OwnedRequestBuffers
impl Sync for OwnedRequestBuffers
impl Unpin for OwnedRequestBuffers
impl UnwindSafe for OwnedRequestBuffers
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