Type Alias linera_execution::ServiceSyncRuntimeHandle
source · pub type ServiceSyncRuntimeHandle = SyncRuntimeHandle<UserServiceInstance>;
Aliased Type§
struct ServiceSyncRuntimeHandle(/* private fields */);
Trait Implementations§
source§impl ServiceRuntime for ServiceSyncRuntimeHandle
impl ServiceRuntime for ServiceSyncRuntimeHandle
source§fn 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>
Note that queries are not available from writable contexts.
source§fn fetch_url(&mut self, url: &str) -> Result<Vec<u8>, ExecutionError>
fn fetch_url(&mut self, url: &str) -> Result<Vec<u8>, ExecutionError>
Get a blob of bytes from an arbitrary URL.
source§fn 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.