Struct avm_server::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<Self, RunnerError>
pub fn new( air_wasm_path: PathBuf, max_heap_size: Option<u64>, logging_mask: i32 ) -> Result<Self, RunnerError>
Create AVM with the provided config.
pub fn call( &mut self, air: impl Into<String>, prev_data: impl Into<Vec<u8>>, data: impl Into<Vec<u8>>, init_peer_id: impl Into<String>, timestamp: u64, ttl: u32, current_peer_id: impl Into<String>, call_results: CallResults, keypair: &KeyPair, particle_id: String ) -> Result<RawAVMOutcome, RunnerError>
pub fn call_tracing( &mut self, air: impl Into<String>, prev_data: impl Into<Vec<u8>>, data: impl Into<Vec<u8>>, init_peer_id: impl Into<String>, timestamp: u64, ttl: u32, current_peer_id: impl Into<String>, call_results: CallResults, tracing_params: String, tracing_output_mode: u8, key_format: u8, secret_key_bytes: Vec<u8>, particle_id: String ) -> 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§
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
§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.