Trait linera_execution::ServiceRuntime
source · pub trait ServiceRuntime: BaseRuntime {
// Required methods
fn try_query_application(
&mut self,
queried_id: UserApplicationId,
argument: Vec<u8>,
) -> Result<Vec<u8>, ExecutionError>;
fn fetch_url(&mut self, url: &str) -> Result<Vec<u8>, ExecutionError>;
fn schedule_operation(
&mut self,
operation: Vec<u8>,
) -> Result<(), ExecutionError>;
}
Required Methods§
sourcefn try_query_application(
&mut self,
queried_id: UserApplicationId,
argument: Vec<u8>,
) -> Result<Vec<u8>, ExecutionError>
fn try_query_application( &mut self, queried_id: UserApplicationId, argument: Vec<u8>, ) -> Result<Vec<u8>, ExecutionError>
Queries another application.
sourcefn fetch_url(&mut self, url: &str) -> Result<Vec<u8>, ExecutionError>
fn fetch_url(&mut self, url: &str) -> Result<Vec<u8>, ExecutionError>
Fetches blob of bytes from an arbitrary URL.
sourcefn schedule_operation(
&mut self,
operation: Vec<u8>,
) -> Result<(), ExecutionError>
fn schedule_operation( &mut self, operation: Vec<u8>, ) -> Result<(), ExecutionError>
Schedules an operation to be included in the block proposed after execution.