#rotor #async #mio #state-machine

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

#2462 in Algorithms

Download history 35/week @ 2024-05-03 42/week @ 2024-05-10 36/week @ 2024-05-17 43/week @ 2024-05-24 42/week @ 2024-05-31 24/week @ 2024-06-07 36/week @ 2024-06-14 43/week @ 2024-06-21 13/week @ 2024-06-28 8/week @ 2024-07-05 28/week @ 2024-07-12 34/week @ 2024-07-19 23/week @ 2024-07-26 28/week @ 2024-08-02 50/week @ 2024-08-09 27/week @ 2024-08-16

133 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

~4MB
~72K SLoC