#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

#6 in #rotor

Download history 25/week @ 2024-07-22 23/week @ 2024-07-29 35/week @ 2024-08-05 46/week @ 2024-08-12 31/week @ 2024-08-19 34/week @ 2024-08-26 21/week @ 2024-09-02 20/week @ 2024-09-09 10/week @ 2024-09-16 32/week @ 2024-09-23 23/week @ 2024-09-30 3/week @ 2024-10-07 16/week @ 2024-10-14 20/week @ 2024-10-21 14/week @ 2024-10-28 27/week @ 2024-11-04

77 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