Trait Handle

Source
pub trait Handle {
    // Required method
    fn addr(&self) -> SocketAddr;

    // Provided methods
    fn button<'life0, 'async_trait>(
        &'life0 self,
        button: Button,
        action: Action,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
    fn screenshot<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<DynamicImage>> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait { ... }
}
Expand description

Handle trait for interacting with speculos

Required Methods§

Source

fn addr(&self) -> SocketAddr

Get speculos HTTP address

Provided Methods§

Source

fn button<'life0, 'async_trait>( &'life0 self, button: Button, action: Action, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait,

Send a button action to the simulator

Source

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

Fetch a screenshot from the simulator

Implementors§