Struct Mapper

Source
struct Mapper {
    tube: Arc<Mutex<Tube>>,
    slot: u32,
}

Fields§

§tube: Arc<Mutex<Tube>>§slot: u32

Implementations§

Source§

impl Mapper

Source

fn new(tube: Arc<Mutex<Tube>>, slot: u32) -> Self

Source

fn process_request(&self, request: &FsMappingRequest) -> Result<()>

Trait Implementations§

Source§

impl Mapper for Mapper

Source§

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 more
Source§

fn unmap(&self, offset: u64, size: u64) -> Result<()>

Unmaps size bytes at offset bytes from the start of the memory region. offset must be page aligned. Read more

Auto 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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V