pub trait SpilmanClientAsyncNetworking {
// Required method
fn call_mint_swap<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
mint_url: &'life1 str,
swap_request_json: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<String, String>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
}Expand description
Async networking trait for client-side mint communication.
This is the async counterpart of SpilmanClientNetworking, designed for
environments like WASM where networking must be asynchronous.
Required Methods§
Sourcefn call_mint_swap<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
mint_url: &'life1 str,
swap_request_json: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<String, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn call_mint_swap<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
mint_url: &'life1 str,
swap_request_json: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<String, String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Execute a swap with the mint (async version).
Posts swap_request_json to {mint_url}/v1/swap and returns the
response body as a JSON string.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".