Trait air_test_utils::test_runner::AirRunner
source · pub trait AirRunner {
// Required methods
fn new(
current_call_id: impl Into<String>,
test_init_parameters: TestInitParameters,
) -> LocalBoxFuture<'static, Self>;
fn call<'this>(
&'this 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,
override_current_peer_id: Option<String>,
call_results: CallResults,
key_pair: &KeyPair,
particle_id: String,
) -> LocalBoxFuture<'this, Result<RawAVMOutcome, Box<dyn Error + 'this>>>;
fn get_current_peer_id(&self) -> &str;
}
Required Methods§
fn new( current_call_id: impl Into<String>, test_init_parameters: TestInitParameters, ) -> LocalBoxFuture<'static, Self>
fn call<'this>( &'this 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, override_current_peer_id: Option<String>, call_results: CallResults, key_pair: &KeyPair, particle_id: String, ) -> LocalBoxFuture<'this, Result<RawAVMOutcome, Box<dyn Error + 'this>>>
fn get_current_peer_id(&self) -> &str
Object Safety§
This trait is not object safe.