Struct air_test_utils::avm_runner::AVMRunner
source · pub struct AVMRunner { /* private fields */ }
Implementations§
source§impl AVMRunner
impl AVMRunner
sourcepub fn new(
air_wasm_path: PathBuf,
max_heap_size: Option<u64>,
logging_mask: i32
) -> Result<AVMRunner, RunnerError>
pub fn new( air_wasm_path: PathBuf, max_heap_size: Option<u64>, logging_mask: i32 ) -> Result<AVMRunner, RunnerError>
Create AVM with the provided config.
pub fn call( &mut self, air: impl Into<String>, prev_data: impl Into<Vec<u8, Global>>, data: impl Into<Vec<u8, Global>>, init_peer_id: impl Into<String>, timestamp: u64, ttl: u32, current_peer_id: impl Into<String>, call_results: HashMap<u32, CallServiceResult, RandomState> ) -> Result<RawAVMOutcome, RunnerError>
pub fn call_tracing( &mut self, air: impl Into<String>, prev_data: impl Into<Vec<u8, Global>>, data: impl Into<Vec<u8, Global>>, init_peer_id: impl Into<String>, timestamp: u64, ttl: u32, current_peer_id: impl Into<String>, call_results: HashMap<u32, CallServiceResult, RandomState>, tracing_params: String, tracing_output_mode: u8 ) -> Result<RawAVMOutcome, RunnerError>
pub fn memory_stats(&self) -> AVMMemoryStats
Auto Trait Implementations§
impl !RefUnwindSafe for AVMRunner
impl Send for AVMRunner
impl !Sync for AVMRunner
impl Unpin for AVMRunner
impl !UnwindSafe for AVMRunner
Blanket Implementations§
§impl<T> GetSetFdFlags for T
impl<T> GetSetFdFlags for T
§fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
fn get_fd_flags(&self) -> Result<FdFlags, Error>where T: AsFilelike,
Query the “status” flags for the
self
file descriptor.