v_rusty_tarantool 0.3.1

Tarantul async client based on tokio framework
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use rusty_tarantool::tarantool::ClientConfig;
use std::io;

#[tokio::main]
async fn main() -> io::Result<()> {
    println!("Connect to tarantool and call simple stored procedure!");
    let client = ClientConfig::new("127.0.0.1:3301", "rust", "rust")
        .set_timeout_time_ms(2000)
        .set_reconnect_time_ms(2000)
        .build();

    let response = client.call_fn2("test", &("param11", "param12") , &2).await?;
    let res : ((String,String), u64, Option<u64>) = response.decode_trio()?;
    println!("stored procedure response ={:?}", res);
    Ok(())
}