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§
Sourcefn addr(&self) -> SocketAddr
fn addr(&self) -> SocketAddr
Get speculos HTTP address
Provided Methods§
Send a button action to the simulator
Sourcefn screenshot<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<DynamicImage>> + 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,
Fetch a screenshot from the simulator