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]
impl<'a> MemoryMapping<'a>
[src]pub fn new<E: UserDefinedError>(
regions: Vec<MemoryRegion>,
config: &'a Config
) -> Result<Self, EbpfError<E>>
[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]
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]
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> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,