pub struct ContractMapRef(/* private fields */);
Implementations§
Source§impl ContractMapRef
impl ContractMapRef
pub fn new() -> Self
pub fn lock(&self) -> MutexGuard<'_, ContractMap>
Trait Implementations§
Source§impl Clone for ContractMapRef
impl Clone for ContractMapRef
Source§fn clone(&self) -> ContractMapRef
fn clone(&self) -> ContractMapRef
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 Debug for ContractMapRef
impl Debug for ContractMapRef
Source§impl Default for ContractMapRef
impl Default for ContractMapRef
Source§fn default() -> ContractMapRef
fn default() -> ContractMapRef
Returns the “default value” for a type. Read more
Source§impl Executor for ContractMapRef
impl Executor for ContractMapRef
Source§fn set_vm_hooks_ptr(
&mut self,
_vm_hooks_ptr: *mut c_void,
) -> Result<(), ExecutorError>
fn set_vm_hooks_ptr( &mut self, _vm_hooks_ptr: *mut c_void, ) -> Result<(), ExecutorError>
Sets the data that can be hold by an instance context.
Source§fn set_opcode_cost(
&mut self,
_opcode_cost: &OpcodeCost,
) -> Result<(), ExecutorError>
fn set_opcode_cost( &mut self, _opcode_cost: &OpcodeCost, ) -> Result<(), ExecutorError>
Sets the opcode costs for the given executor.
Source§fn new_instance(
&self,
wasm_bytes: &[u8],
_compilation_options: &CompilationOptions,
) -> Result<Box<dyn Instance>, ExecutorError>
fn new_instance( &self, wasm_bytes: &[u8], _compilation_options: &CompilationOptions, ) -> Result<Box<dyn Instance>, ExecutorError>
Creates a new VM executor instance.
Source§fn new_instance_from_cache(
&self,
_cache_bytes: &[u8],
_compilation_options: &CompilationOptions,
) -> Result<Box<dyn Instance>, ExecutorError>
fn new_instance_from_cache( &self, _cache_bytes: &[u8], _compilation_options: &CompilationOptions, ) -> Result<Box<dyn Instance>, ExecutorError>
Creates a new VM executor instance from cache.
Auto Trait Implementations§
impl Freeze for ContractMapRef
impl RefUnwindSafe for ContractMapRef
impl Send for ContractMapRef
impl Sync for ContractMapRef
impl Unpin for ContractMapRef
impl UnwindSafe for ContractMapRef
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