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§

source

fn try_query_application( &mut self, queried_id: UserApplicationId, argument: Vec<u8>, ) -> Result<Vec<u8>, ExecutionError>

Queries another application.

source

fn fetch_url(&mut self, url: &str) -> Result<Vec<u8>, ExecutionError>

Fetches blob of bytes from an arbitrary URL.

source

fn schedule_operation( &mut self, operation: Vec<u8>, ) -> Result<(), ExecutionError>

Schedules an operation to be included in the block proposed after execution.

Implementors§