LXI protocol abstractions for Tokio.
```rust extern crate tokio; extern crate tokio_lxi;
use tokio::prelude::*; use tokio_lxi::LxiDevice;
fn main() { let addr = "10.0.0.9:5025".parse().unwrap(); let device = LxiDevice::connect(&addr) .andthen(|dev| dev.send(String::from("*IDN?"))) .andthen(|(dev, )| dev.receive(String::new())) .map(|(, text)| println!("{}", text)) .map_err(|e| panic!("{:?}", e));
tokio::run(device);
} ```
Licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.