Struct solana_rbpf::memory_region::MemoryMapping[][src]

pub struct MemoryMapping<'a> { /* fields omitted */ }

Indirection to use instead of a slice to make handling easier

Implementations

impl<'a> MemoryMapping<'a>[src]

pub fn new<E: UserDefinedError>(
    regions: Vec<MemoryRegion>,
    config: &'a Config
) -> Result<Self, EbpfError<E>>
[src]

Creates a new MemoryMapping structure from the given regions

pub fn map<E: UserDefinedError>(
    &self,
    access_type: AccessType,
    vm_addr: u64,
    len: u64
) -> Result<u64, EbpfError<E>>
[src]

Given a list of regions translate from virtual machine to host address

pub fn resize_region<E: UserDefinedError>(
    &mut self,
    index: usize,
    new_len: u64
) -> Result<(), EbpfError<E>>
[src]

Resize the memory_region at the given index

Auto Trait Implementations

impl<'a> RefUnwindSafe for MemoryMapping<'a>

impl<'a> Send for MemoryMapping<'a>

impl<'a> Sync for MemoryMapping<'a>

impl<'a> Unpin for MemoryMapping<'a>

impl<'a> UnwindSafe for MemoryMapping<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

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