#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

#4 in #rotor

Download history 25/week @ 2023-11-27 8/week @ 2023-12-04 18/week @ 2023-12-11 25/week @ 2023-12-18 20/week @ 2023-12-25 32/week @ 2024-01-08 17/week @ 2024-01-15 17/week @ 2024-01-22 5/week @ 2024-01-29 13/week @ 2024-02-05 23/week @ 2024-02-12 28/week @ 2024-02-19 41/week @ 2024-02-26 49/week @ 2024-03-04 51/week @ 2024-03-11

174 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
~71K SLoC