use empidee::MpdClient; #[tokio::main(flavor = "current_thread")] async fn main() -> anyhow::Result<()> { let socket = tokio::net::TcpSocket::new_v4()?; let mut stream = socket.connect("127.0.0.1:6600".parse()?).await?; let mut client = MpdClient::new(&mut stream); println!("{}", client.read_initial_mpd_version().await?); client.play(None).await?; Ok(()) }