Struct avm_server::avm_runner::AVMRunner
source · [−]pub struct AVMRunner { /* private fields */ }Implementations
sourceimpl AVMRunner
impl AVMRunner
sourcepub fn new(
air_wasm_path: PathBuf,
current_peer_id: impl Into<String>,
max_heap_size: Option<u64>,
logging_mask: i32
) -> Result<Self, RunnerError>
pub fn new(
air_wasm_path: PathBuf,
current_peer_id: impl Into<String>,
max_heap_size: Option<u64>,
logging_mask: i32
) -> Result<Self, RunnerError>
Create AVM with provided config.
pub fn call(
&mut self,
air: impl Into<String>,
prev_data: impl Into<Vec<u8>>,
data: impl Into<Vec<u8>>,
init_user_id: impl Into<String>,
call_results: CallResults
) -> Result<RawAVMOutcome, RunnerError>
pub fn memory_size(&self) -> usize
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more