Struct avm_server::AVM
source · pub struct AVM<E> { /* private fields */ }Implementations§
source§impl<E> AVM<E>
impl<E> AVM<E>
pub fn call(
&mut self,
air: impl Into<String>,
data: impl Into<Vec<u8>>,
particle_parameters: ParticleParameters<'_>,
call_results: CallResults
) -> AVMResult<AVMOutcome, E>
sourcepub fn cleanup_data(&mut self, particle_id: &str) -> AVMResult<(), E>
pub fn cleanup_data(&mut self, particle_id: &str) -> AVMResult<(), E>
Cleanup data that become obsolete.
sourcepub fn memory_stats(&self) -> AVMMemoryStats
pub fn memory_stats(&self) -> AVMMemoryStats
Return memory stat of an interpreter heap.