field_ios

In-the-field app for Radroots on iOS
git clone https://radroots.dev/git/field_ios.git
Log | Files | Refs | README | LICENSE

runtime.rs (714B)


      1 use super::TeraRuntime;
      2 use crate::{FfiSubmissionReservationReceipt, FfiSubmissionReservationRequest, TeraAppError};
      3 
      4 #[path = "media_runtime.rs"]
      5 mod media;
      6 #[path = "operation_runtime.rs"]
      7 mod operation;
      8 
      9 #[cfg_attr(not(coverage_nightly), uniffi::export(async_runtime = "tokio"))]
     10 impl TeraRuntime {
     11     /// Retrying the original request recovers a committed reservation after a lost callback.
     12     pub async fn submission_reserve(
     13         &self,
     14         request: FfiSubmissionReservationRequest,
     15     ) -> Result<FfiSubmissionReservationReceipt, TeraAppError> {
     16         let request = request.try_into()?;
     17         let receipt = self.inner.submission_reserve(&request).await?;
     18         Ok((&receipt).into())
     19     }
     20 }