Struct solana_rbpf::memory_region::MemoryMapping [−][src]
Indirection to use instead of a slice to make handling easier
Implementations
impl<'a> MemoryMapping<'a>
[src]
pub fn new(regions: Vec<MemoryRegion>, config: &'a Config) -> Self
[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]
&self,
access_type: AccessType,
vm_addr: u64,
len: u64
) -> Result<u64, EbpfError<E>>
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]
&mut self,
index: usize,
new_len: u64
) -> Result<(), EbpfError<E>>
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
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]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
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]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,