pub struct ContractDebugInstanceState;Implementations§
Source§impl ContractDebugInstanceState
impl ContractDebugInstanceState
Sourcepub unsafe fn main_memory_load(
mem_ptr: MemPtr,
mem_length: MemLength,
) -> &'static [u8] ⓘ
pub unsafe fn main_memory_load( mem_ptr: MemPtr, mem_length: MemLength, ) -> &'static [u8] ⓘ
Interprets the input as a regular pointer.
§Safety
The offset and the length must point to valid memory.
Sourcepub unsafe fn main_memory_store(offset: MemPtr, data: &[u8])
pub unsafe fn main_memory_store(offset: MemPtr, data: &[u8])
Interprets the input as a regular pointer and writes to current memory.
§Safety
The offset and the length must point to valid memory.
pub fn main_memory_ptr(bytes: &[u8]) -> (MemPtr, MemLength)
pub fn main_memory_mut_ptr(bytes: &mut [u8]) -> (MemPtr, MemLength)
pub fn early_exit_panic(early_exit: VMHooksEarlyExit) -> !
pub fn breakpoint_panic(breakpoint_value: BreakpointValue) -> !
Trait Implementations§
Source§impl Clone for ContractDebugInstanceState
impl Clone for ContractDebugInstanceState
Source§fn clone(&self) -> ContractDebugInstanceState
fn clone(&self) -> ContractDebugInstanceState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ContractDebugInstanceState
impl Debug for ContractDebugInstanceState
Source§impl InstanceState for ContractDebugInstanceState
impl InstanceState for ContractDebugInstanceState
Source§fn get_points_used(&mut self) -> Result<u64, ExecutorError>
fn get_points_used(&mut self) -> Result<u64, ExecutorError>
Returns the number of points(gas) used by the given instance.
Source§fn set_points_used(&mut self, _points: u64) -> Result<(), ExecutorError>
fn set_points_used(&mut self, _points: u64) -> Result<(), ExecutorError>
Sets the number of points(gas) for the given instance.
Source§fn memory_load_to_slice(
&self,
mem_ptr: MemPtr,
dest: &mut [u8],
) -> Result<(), ExecutorError>
fn memory_load_to_slice( &self, mem_ptr: MemPtr, dest: &mut [u8], ) -> Result<(), ExecutorError>
Copies data to new owned buffer.
Source§fn memory_load_owned(
&self,
mem_ptr: MemPtr,
mem_length: MemLength,
) -> Result<Vec<u8>, ExecutorError>
fn memory_load_owned( &self, mem_ptr: MemPtr, mem_length: MemLength, ) -> Result<Vec<u8>, ExecutorError>
Copies data to new owned buffer.
Source§fn memory_store(
&self,
mem_ptr: MemPtr,
data: &[u8],
) -> Result<(), ExecutorError>
fn memory_store( &self, mem_ptr: MemPtr, data: &[u8], ) -> Result<(), ExecutorError>
Loads data to given slice. In certain cases
Auto Trait Implementations§
impl Freeze for ContractDebugInstanceState
impl RefUnwindSafe for ContractDebugInstanceState
impl Send for ContractDebugInstanceState
impl Sync for ContractDebugInstanceState
impl Unpin for ContractDebugInstanceState
impl UnsafeUnpin for ContractDebugInstanceState
impl UnwindSafe for ContractDebugInstanceState
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> InterpretableFrom<&T> for Twhere
T: Clone,
impl<T> InterpretableFrom<&T> for Twhere
T: Clone,
fn interpret_from(from: &T, _context: &InterpreterContext) -> T
Source§impl<T> InterpretableFrom<T> for T
impl<T> InterpretableFrom<T> for T
fn interpret_from(from: T, _context: &InterpreterContext) -> T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more