pub trait App: Send + Sync {
    // Provided methods
    fn is_rofl(&self) -> bool { ... }
    fn get_config(&self) -> Config { ... }
    fn on_init(&mut self, host: Arc<dyn Host>) -> Result<()> { ... }
    fn quote_policy<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<QuotePolicy>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait { ... }
    fn on_runtime_block<'life0, 'life1, 'async_trait>(
        &'life0 self,
        blk: &'life1 AnnotatedBlock,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait { ... }
    fn on_runtime_event<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        blk: &'life1 AnnotatedBlock,
        tags: &'life2 [Vec<u8>],
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait { ... }
    fn query<'life0, 'life1, 'async_trait>(
        &'life0 self,
        method: &'life1 str,
        args: Vec<u8>,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<u8>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait { ... }
}Expand description
A runtime application.
Provided Methods§
Sourcefn get_config(&self) -> Config
 
fn get_config(&self) -> Config
Returns the application’s configuration settings.
Sourcefn quote_policy<'life0, 'async_trait>(
    &'life0 self,
) -> Pin<Box<dyn Future<Output = Result<QuotePolicy>> + Send + 'async_trait>>where
    Self: 'async_trait,
    'life0: 'async_trait,
 
fn quote_policy<'life0, 'async_trait>(
    &'life0 self,
) -> Pin<Box<dyn Future<Output = Result<QuotePolicy>> + Send + 'async_trait>>where
    Self: 'async_trait,
    'life0: 'async_trait,
Quote policy to use for verifying our own enclave identity.
Sourcefn on_runtime_block<'life0, 'life1, 'async_trait>(
    &'life0 self,
    blk: &'life1 AnnotatedBlock,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
    Self: 'async_trait,
    'life0: 'async_trait,
    'life1: 'async_trait,
 
fn on_runtime_block<'life0, 'life1, 'async_trait>(
    &'life0 self,
    blk: &'life1 AnnotatedBlock,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
    Self: 'async_trait,
    'life0: 'async_trait,
    'life1: 'async_trait,
Called on new runtime block being received.
Sourcefn on_runtime_event<'life0, 'life1, 'life2, 'async_trait>(
    &'life0 self,
    blk: &'life1 AnnotatedBlock,
    tags: &'life2 [Vec<u8>],
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
    Self: 'async_trait,
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
 
fn on_runtime_event<'life0, 'life1, 'life2, 'async_trait>(
    &'life0 self,
    blk: &'life1 AnnotatedBlock,
    tags: &'life2 [Vec<u8>],
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
    Self: 'async_trait,
    'life0: 'async_trait,
    'life1: 'async_trait,
    'life2: 'async_trait,
Called on new runtime event being detected.