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

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

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]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

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

pub fn from(t: T) -> T[src]

Performs the conversion.

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

pub fn into(self) -> U[src]

Performs the conversion.

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.

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

Performs the conversion.

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.

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

Performs the conversion.

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

pub fn vzip(self) -> V