#mio #rotor #async

rotor-tools

Various utility things for comfortable writing of application and protocols using rotor library

5 unstable releases

Uses old Rust 2015

0.3.2 Mar 28, 2016
0.3.1 Mar 3, 2016
0.3.0 Mar 1, 2016
0.2.0 Feb 3, 2016
0.1.0 Feb 3, 2016

#2 in #rotor

Download history 16/week @ 2020-11-02 18/week @ 2020-11-09 18/week @ 2020-11-16 19/week @ 2020-11-23 19/week @ 2020-11-30 18/week @ 2020-12-07 7/week @ 2020-12-14 8/week @ 2020-12-21 6/week @ 2020-12-28 23/week @ 2021-01-04 17/week @ 2021-01-11 18/week @ 2021-01-18 17/week @ 2021-01-25 11/week @ 2021-02-01 18/week @ 2021-02-08 29/week @ 2021-02-15

64 downloads per month
Used in 3 crates

MIT/Apache

20KB
341 lines

Rotor Tools

Documentation:http://tailhook.github.io/rotor-tools/

This module contains various tools that are useful for wrinting applications using rotor asynchronous framework for rust.

The tools here could be the core of rotor we are trying to make rotor itself as small as possible, because all things in the same application (actually the same main loop) should have same version of rotor core library. But different versions of other libraries are possible, including rotor-tools.

Tools included:

  1. Simplified state machines:
    1. A bare timer, including interval_func(duration, |_| { do_something() })
  2. Loop setup helpers
    1. LoopExt::add_and_fetch -- easier setup of client protocols

License

Licensed under either of

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.

Dependencies

~2.5MB
~45K SLoC