var searchIndex = {}; searchIndex["rotor_tools"] = {"doc":"","items":[[3,"Duration","rotor_tools","ISO 8601 time duration with nanosecond precision.\nThis also allows for the negative duration; see individual methods for details.",null,null],[3,"Deadline","","A structure representing a moment in time.",null,null],[0,"timer","","Time utitities",null,null],[3,"Ticker","rotor_tools::timer","Ticker state machine",null,null],[3,"Interval","","Interval state machine",null,null],[5,"interval_func","","A helper function to create intervals from closures",null,{"inputs":[{"name":"scope"},{"name":"duration"},{"name":"f"}],"output":{"name":"intervalfunc"}}],[6,"IntervalFunc","","A convenience type for declaring state machines",null,null],[8,"Timer","","A protocol for the state machine that put into the `Ticker`",null,null],[16,"Context","","",0,null],[10,"timeout","","Called when time elapsed",0,null],[10,"next_wakeup_time","","Calculates the next wakeup time",0,null],[8,"SimpleTimer","","The timer trait used in the `Ticker<Interval<T>>`",null,null],[16,"Context","","",1,null],[10,"timeout","","Called when time elapsed",1,null],[11,"new","","",2,{"inputs":[{"name":"scope"},{"name":"t"}],"output":{"name":"ticker"}}],[11,"create","","",2,{"inputs":[{"name":"seed"},{"name":"scope"}],"output":{"name":"result"}}],[11,"ready","","",2,null],[11,"spawned","","",2,null],[11,"timeout","","",2,null],[11,"wakeup","","",2,null],[11,"timeout","","",3,null],[11,"next_wakeup_time","","",3,null],[0,"loop_ext","rotor_tools","",null,null],[8,"LoopExt","rotor_tools::loop_ext","Convenience enhancements to the main loop creator",null,null],[10,"add_and_fetch","","This method is useful for things that have a state machine and an\naccessor to it.",4,null],[8,"LoopInstanceExt","","Convenience enhancements to the main loop creator instance",null,null],[10,"add_and_fetch","","This method is useful for things that have a state machine and an\naccessor to it.",5,null],[11,"weeks","rotor_tools","Makes a new `Duration` with given number of weeks.\nEquivalent to `Duration::seconds(weeks * 7 * 24 * 60 * 60)` with overflow checks.\nPanics when the duration is out of bounds.",6,{"inputs":[{"name":"i64"}],"output":{"name":"duration"}}],[11,"days","","Makes a new `Duration` with given number of days.\nEquivalent to `Duration::seconds(days * 24 * 60 * 60)` with overflow checks.\nPanics when the duration is out of bounds.",6,{"inputs":[{"name":"i64"}],"output":{"name":"duration"}}],[11,"hours","","Makes a new `Duration` with given number of hours.\nEquivalent to `Duration::seconds(hours * 60 * 60)` with overflow checks.\nPanics when the duration is out of bounds.",6,{"inputs":[{"name":"i64"}],"output":{"name":"duration"}}],[11,"minutes","","Makes a new `Duration` with given number of minutes.\nEquivalent to `Duration::seconds(minutes * 60)` with overflow checks.\nPanics when the duration is out of bounds.",6,{"inputs":[{"name":"i64"}],"output":{"name":"duration"}}],[11,"seconds","","Makes a new `Duration` with given number of seconds.\nPanics when the duration is more than `i64::MAX` milliseconds\nor less than `i64::MIN` milliseconds.",6,{"inputs":[{"name":"i64"}],"output":{"name":"duration"}}],[11,"milliseconds","","Makes a new `Duration` with given number of milliseconds.",6,{"inputs":[{"name":"i64"}],"output":{"name":"duration"}}],[11,"microseconds","","Makes a new `Duration` with given number of microseconds.",6,{"inputs":[{"name":"i64"}],"output":{"name":"duration"}}],[11,"nanoseconds","","Makes a new `Duration` with given number of nanoseconds.",6,{"inputs":[{"name":"i64"}],"output":{"name":"duration"}}],[11,"span","","Runs a closure, returning the duration of time it took to run the\nclosure.",6,{"inputs":[{"name":"f"}],"output":{"name":"duration"}}],[11,"num_weeks","","Returns the total number of whole weeks in the duration.",6,null],[11,"num_days","","Returns the total number of whole days in the duration.",6,null],[11,"num_hours","","Returns the total number of whole hours in the duration.",6,null],[11,"num_minutes","","Returns the total number of whole minutes in the duration.",6,null],[11,"num_seconds","","Returns the total number of whole seconds in the duration.",6,null],[11,"num_milliseconds","","Returns the total number of whole milliseconds in the duration,",6,null],[11,"num_microseconds","","Returns the total number of whole microseconds in the duration,\nor `None` on overflow (exceeding 2^63 microseconds in either direction).",6,null],[11,"num_nanoseconds","","Returns the total number of whole nanoseconds in the duration,\nor `None` on overflow (exceeding 2^63 nanoseconds in either direction).",6,null],[11,"checked_add","","Add two durations, returning `None` if overflow occurred.",6,null],[11,"checked_sub","","Subtract two durations, returning `None` if overflow occurred.",6,null],[11,"min_value","","The minimum possible `Duration`: `i64::MIN` milliseconds.",6,{"inputs":[],"output":{"name":"duration"}}],[11,"max_value","","The maximum possible `Duration`: `i64::MAX` milliseconds.",6,{"inputs":[],"output":{"name":"duration"}}],[11,"zero","","A duration where the stored seconds and nanoseconds are equal to zero.",6,{"inputs":[],"output":{"name":"duration"}}],[11,"is_zero","","Returns `true` if the duration equals `Duration::zero()`.",6,null],[11,"from_std","","Creates a `time::Duration` object from `std::time::Duration`",6,{"inputs":[{"name":"duration"}],"output":{"name":"result"}}],[11,"to_std","","Creates a `std::time::Duration` object from `time::Duration`",6,null],[11,"fmt","","",6,null],[11,"cmp","","",6,null],[11,"partial_cmp","","",6,null],[11,"lt","","",6,null],[11,"le","","",6,null],[11,"gt","","",6,null],[11,"ge","","",6,null],[11,"eq","","",6,null],[11,"ne","","",6,null],[11,"clone","","",6,null],[11,"neg","","",6,null],[11,"add","","",6,null],[11,"sub","","",6,null],[11,"mul","","",6,null],[11,"div","","",6,null],[11,"fmt","","",6,null],[11,"fmt","","",7,null],[11,"eq","","",7,null],[11,"ne","","",7,null],[11,"cmp","","",7,null],[11,"partial_cmp","","",7,null],[11,"lt","","",7,null],[11,"le","","",7,null],[11,"gt","","",7,null],[11,"ge","","",7,null],[11,"clone","","",7,null],[11,"now","","Returns a `SteadyTime` representing the current moment in time.",7,{"inputs":[],"output":{"name":"steadytime"}}],[11,"fmt","","",7,null],[11,"sub","","",7,null],[11,"sub","","",7,null],[11,"add","","",7,null]],"paths":[[8,"Timer"],[8,"SimpleTimer"],[3,"Ticker"],[3,"Interval"],[8,"LoopExt"],[8,"LoopInstanceExt"],[3,"Duration"],[3,"Deadline"]]}; initSearch(searchIndex);