A fluentd client using tokio.
```rust use std::collections::HashMap;
use tokiofluent::client::{Client, Config}; use tokiofluent::entry::{Map, Value}; use tokiofluent::entrymap;
async fn main() { let client = Client::new(&Config { addr: "127.0.0.1:24224".parse().unwrap() }).await.unwrap();
// With Map::new()
let mut map = Map::new();
map.insert("age".to_string(), 22.into());
map.insert(
"scores".to_string(),
vec![80, 90]
.into_iter()
.map(|e| e.into())
.collect::<Vec<_>>()
.into(),
);
client.send("fluent.test", map).unwrap();
// With entry_map! macro
let mut map_from_macro = entry_map!(
"age".to_string() => 22.into(),
"scores".to_string() => [80, 90].into_iter().map(|e| e.into()).collect::<Vec<_>>().into(),
);
} ```