Skip to main content

BrowserExecutor

Trait BrowserExecutor 

Source
pub trait BrowserExecutor: Send + Sync {
    // Required methods
    fn execute<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        args: &'life1 [&'life2 str],
    ) -> Pin<Box<dyn Future<Output = Result<BrowserOutput, BrowserError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn is_daemon_running(&self) -> bool;
    fn config(&self) -> &BrowserConfig;
}
Expand description

Trait for browser execution backends

Required Methods§

Source

fn execute<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, args: &'life1 [&'life2 str], ) -> Pin<Box<dyn Future<Output = Result<BrowserOutput, BrowserError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Execute a browser command with the given arguments

Source

fn is_daemon_running(&self) -> bool

Check if the browser daemon is running

Source

fn config(&self) -> &BrowserConfig

Get the configuration

Implementors§