16 lines
407 B
Rust
16 lines
407 B
Rust
use joecalsend::{Client, models::device::DeviceInfo};
|
|
use tokio::io;
|
|
|
|
#[tokio::main]
|
|
async fn main() -> io::Result<()> {
|
|
let device = DeviceInfo::default();
|
|
dbg!(&device);
|
|
|
|
let client = Client::with_config(device, 53317, "/home/ardent/joecalsend".into())
|
|
.await
|
|
.unwrap();
|
|
let (h1, h2, h3) = client.start().await.unwrap();
|
|
let _ = tokio::join!(h1, h2, h3);
|
|
|
|
Ok(())
|
|
}
|