Struct base::mmap::ExternalMapping
source · pub struct ExternalMapping {
pub ptr: u64,
pub size: usize,
}
Fields§
§ptr: u64
§size: usize
Trait Implementations§
source§impl Debug for ExternalMapping
impl Debug for ExternalMapping
source§impl MappedRegion for ExternalMapping
impl MappedRegion for ExternalMapping
source§fn add_fd_mapping(
&mut self,
_offset: usize,
_size: usize,
_fd: &dyn AsRawDescriptor,
_fd_offset: u64,
_prot: Protection
) -> Result<()>
fn add_fd_mapping( &mut self, _offset: usize, _size: usize, _fd: &dyn AsRawDescriptor, _fd_offset: u64, _prot: Protection ) -> Result<()>
Maps
size
bytes starting at fd_offset
bytes from within the given fd
at offset
bytes from the start of the region with prot
protections.
offset
must be page aligned. Read moresource§impl PartialEq for ExternalMapping
impl PartialEq for ExternalMapping
source§fn eq(&self, other: &ExternalMapping) -> bool
fn eq(&self, other: &ExternalMapping) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ExternalMapping
impl StructuralPartialEq for ExternalMapping
Auto Trait Implementations§
impl RefUnwindSafe for ExternalMapping
impl Send for ExternalMapping
impl Sync for ExternalMapping
impl Unpin for ExternalMapping
impl UnwindSafe for ExternalMapping
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