Skip to main content

AppleScriptDriver

Trait AppleScriptDriver 

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

Required Methods§

Source

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

Run the given AppleScript source. Returns stdout on success; returns ThingsError::AppleScriptFailed { stderr, exit } on non-zero exit.

Implementors§