Trait Driver

Source
pub trait Driver {
    type Handle: Debug;

    // Required methods
    fn run<'life0, 'life1, 'async_trait>(
        &'life0 self,
        app: &'life1 str,
        opts: Options,
    ) -> Pin<Box<dyn Future<Output = Result<Self::Handle>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn wait<'life0, 'life1, 'async_trait>(
        &'life0 self,
        handle: &'life1 mut Self::Handle,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn exit<'life0, 'async_trait>(
        &'life0 self,
        handle: Self::Handle,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Driver trait for speculos providers

Required Associated Types§

Required Methods§

Source

fn run<'life0, 'life1, 'async_trait>( &'life0 self, app: &'life1 str, opts: Options, ) -> Pin<Box<dyn Future<Output = Result<Self::Handle>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Run speculos with the specified app and options

Source

fn wait<'life0, 'life1, 'async_trait>( &'life0 self, handle: &'life1 mut Self::Handle, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Wait for task exit / completion

Source

fn exit<'life0, 'async_trait>( &'life0 self, handle: Self::Handle, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Exit task

Implementors§

Source§

impl Driver for GenericDriver

Driver implementation for GenericDriver, calls out to LocalDriver or DockerDriver depending on configuration.

Source§

impl Driver for DockerDriver

Driver implementation for DockerDriver

Source§

impl Driver for LocalDriver

Driver implementation for LocalDriver