Skip to main content

Executor

Trait Executor 

Source
pub trait Executor:
    Send
    + Sync
    + Debug {
    // Required method
    fn open<'life0, 'life1, 'async_trait>(
        &'life0 self,
        url: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Result<(), ThingsError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

Source

fn open<'life0, 'life1, 'async_trait>( &'life0 self, url: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<(), ThingsError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Hand a things:// URL to the platform. Returns once /usr/bin/open (or the test substitute) has been invoked — does NOT wait for the Things app to actually process it. Post-write verification is the verify module’s job.

Implementors§