pub struct ContractDebugInstance {
pub tx_context_ref: TxContextRef,
pub contract_container_ref: ContractContainerRef,
pub static_var_ref: Rc<StaticVarData>,
}Fields§
§tx_context_ref: TxContextRef§contract_container_ref: ContractContainerRef§static_var_ref: Rc<StaticVarData>Implementations§
Source§impl ContractDebugInstance
impl ContractDebugInstance
pub fn new( tx_context_ref: TxContextRef, contract_container: ContractContainerRef, ) -> Self
Trait Implementations§
Source§impl Clone for ContractDebugInstance
impl Clone for ContractDebugInstance
Source§fn clone(&self) -> ContractDebugInstance
fn clone(&self) -> ContractDebugInstance
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 ContractDebugInstance
impl Debug for ContractDebugInstance
Source§impl Instance for ContractDebugInstance
impl Instance for ContractDebugInstance
Source§fn call(&mut self, func_name: &str, _points_limit: u64) -> InstanceCallResult
fn call(&mut self, func_name: &str, _points_limit: u64) -> InstanceCallResult
Calls an exported function of a WebAssembly instance by
name.Source§fn check_signatures(&self) -> bool
fn check_signatures(&self) -> bool
Checks that all public module functions (SC endpoints) have no arguments or results.
Source§fn has_function(&self, func_name: &str) -> bool
fn has_function(&self, func_name: &str) -> bool
Checks whether SC has an endpoint with given name.
Source§fn get_exported_function_names(&self) -> Vec<String>
fn get_exported_function_names(&self) -> Vec<String>
Required to be able to extract all SC endpoint names.
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.
Auto Trait Implementations§
impl Freeze for ContractDebugInstance
impl !RefUnwindSafe for ContractDebugInstance
impl !Send for ContractDebugInstance
impl !Sync for ContractDebugInstance
impl Unpin for ContractDebugInstance
impl UnsafeUnpin for ContractDebugInstance
impl !UnwindSafe for ContractDebugInstance
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