tokio-lxi

Crates.io Docs.rs Travis CI Appveyor Codecov.io License

LXI protocol abstractions for Tokio.

Example

```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);

} ```

License

Licensed under either of

at your option.

Contribution

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.