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: ApplicationId,
argument: Vec<u8>,
) -> Result<Vec<u8>, ExecutionError>
fn try_query_application( &mut self, queried_id: ApplicationId, argument: Vec<u8>, ) -> Result<Vec<u8>, ExecutionError>
Note that queries are not available from writable contexts.
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.
Source§fn check_execution_time(&mut self) -> Result<(), ExecutionError>
fn check_execution_time(&mut self) -> Result<(), ExecutionError>
Checks if the service has exceeded its execution time limit.