Struct solana_rbpf::call_frames::CallFrames [−][src]
When BPF calls a function other then a syscall
it expect the new
function to be called in its own frame. CallFrames manages
call frames
Implementations
impl CallFrames
[src]
pub fn new(depth: usize, frame_size: usize) -> Self
[src]
New call frame, depth indicates maximum call depth
pub fn get_region(&self) -> &MemoryRegion
[src]
Get stack memory region
pub fn get_frame_pointers(&self) -> Vec<u64>
[src]
Get the vm address of the beginning of each stack frame
pub fn get_stack_top(&self) -> u64
[src]
Get the address of a frame’s top of stack
pub fn get_frame_index(&self) -> usize
[src]
Get current call frame index, 0 is the root frame
pub fn get_max_frame_index(&self) -> usize
[src]
Get max frame index
pub fn push<E: UserDefinedError>(
&mut self,
saved_reg: &[u64],
return_ptr: usize
) -> Result<u64, EbpfError<E>>
[src]
&mut self,
saved_reg: &[u64],
return_ptr: usize
) -> Result<u64, EbpfError<E>>
Push a frame
pub fn pop<E: UserDefinedError>(
&mut self
) -> Result<([u64; 4], u64, usize), EbpfError<E>>
[src]
&mut self
) -> Result<([u64; 4], u64, usize), EbpfError<E>>
Pop a frame
Trait Implementations
impl Clone for CallFrames
[src]
fn clone(&self) -> CallFrames
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for CallFrames
[src]
Auto Trait Implementations
impl RefUnwindSafe for CallFrames
impl Send for CallFrames
impl Sync for CallFrames
impl Unpin for CallFrames
impl UnwindSafe for CallFrames
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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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>,