pub struct ContractContainerRef(/* private fields */);
Implementations§
Source§impl ContractContainerRef
impl ContractContainerRef
pub fn new(contract_container: ContractContainer) -> Self
Trait Implementations§
Source§impl Clone for ContractContainerRef
impl Clone for ContractContainerRef
Source§fn clone(&self) -> ContractContainerRef
fn clone(&self) -> ContractContainerRef
Returns a copy 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 Instance for ContractContainerRef
impl Instance for ContractContainerRef
Source§fn call(&self, func_name: &str) -> Result<(), String>
fn call(&self, func_name: &str) -> Result<(), String>
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 set_points_limit(&self, _limit: u64) -> Result<(), String>
fn set_points_limit(&self, _limit: u64) -> Result<(), String>
Sets the number of points(gas) limit for the given instance.
Source§fn set_points_used(&self, _points: u64) -> Result<(), String>
fn set_points_used(&self, _points: u64) -> Result<(), String>
Sets the number of points(gas) for the given instance.
Source§fn get_points_used(&self) -> Result<u64, String>
fn get_points_used(&self) -> Result<u64, String>
Returns the number of points(gas) used by the given instance.
Source§fn memory_ptr(&self) -> Result<*mut u8, String>
fn memory_ptr(&self) -> Result<*mut u8, String>
Gets a pointer to the beginning of the contiguous memory data bytes.
Source§fn memory_load(
&self,
_mem_ptr: MemPtr,
_mem_length: MemLength,
) -> Result<&[u8], ExecutorError>
fn memory_load( &self, _mem_ptr: MemPtr, _mem_length: MemLength, ) -> Result<&[u8], ExecutorError>
Loads data from executor memory.
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 from executor memory.
Source§fn memory_grow(&self, _by_num_pages: u32) -> Result<u32, ExecutorError>
fn memory_grow(&self, _by_num_pages: u32) -> Result<u32, ExecutorError>
Grows a memory by the given number of pages (of 65Kb each).
Source§fn set_breakpoint_value(&self, _value: BreakpointValue) -> Result<(), String>
fn set_breakpoint_value(&self, _value: BreakpointValue) -> Result<(), String>
Sets the runtime breakpoint value for the given instance.
Source§fn get_breakpoint_value(&self) -> Result<BreakpointValue, String>
fn get_breakpoint_value(&self) -> Result<BreakpointValue, String>
Returns the runtime breakpoint value from the given instance.
Auto Trait Implementations§
impl Freeze for ContractContainerRef
impl !RefUnwindSafe for ContractContainerRef
impl Send for ContractContainerRef
impl Sync for ContractContainerRef
impl Unpin for ContractContainerRef
impl !UnwindSafe for ContractContainerRef
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