struct Mapper {
tube: Arc<Mutex<Tube>>,
slot: u32,
}Fields§
§tube: Arc<Mutex<Tube>>§slot: u32Implementations§
Trait Implementations§
Source§impl Mapper for Mapper
impl Mapper for Mapper
Source§fn map(
&self,
mem_offset: u64,
size: usize,
fd: &dyn AsRawFd,
file_offset: u64,
prot: Protection,
) -> Result<()>
fn map( &self, mem_offset: u64, size: usize, fd: &dyn AsRawFd, file_offset: u64, prot: Protection, ) -> Result<()>
Maps
size bytes starting at file_offset bytes from within the given fd at mem_offset
bytes from the start of the memory region with prot protections. mem_offset must be
page aligned. Read moreAuto Trait Implementations§
impl Freeze for Mapper
impl RefUnwindSafe for Mapper
impl Send for Mapper
impl Sync for Mapper
impl Unpin for Mapper
impl UnwindSafe for Mapper
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