var searchIndex = {}; searchIndex["hybrid_clocks"] = {"doc":"Implementation of Hybrid Logical Clocks.","items":[[3,"Timestamp","hybrid_clocks","A value that represents a logical timestamp.",null,null],[12,"epoch","","An epoch counter.",0,null],[12,"time","","The wall-clock time as returned by the clock source.",0,null],[12,"count","","A Lamport clock used to disambiguate events that are given the same\nwall-clock time. This is reset whenever `time` is incremented.",0,null],[3,"Wall","","A clock source that returns wall-clock in nanoseconds.",null,null],[3,"WallT","","Nanoseconds since unix epoch",null,null],[3,"Clock","","The main clock type.",null,null],[4,"Error","","",null,null],[13,"OffsetTooGreat","","",1,null],[8,"ClockSource","","Describes the interface that the inner clock source must provide.",null,null],[16,"Time","","Represents the described clock time.",2,null],[16,"Delta","","The difference between two timestamps.",2,null],[10,"now","","Returns the current clock time.",2,null],[11,"fmt","","",1,null],[11,"fmt","","",1,null],[11,"description","","",1,null],[11,"cause","","",1,null],[11,"hash","","",0,null],[11,"cmp","","",0,null],[11,"partial_cmp","","",0,null],[11,"lt","","",0,null],[11,"le","","",0,null],[11,"gt","","",0,null],[11,"ge","","",0,null],[11,"eq","","",0,null],[11,"ne","","",0,null],[11,"clone","","",0,null],[11,"fmt","","",0,null],[11,"cmp","","",3,null],[11,"partial_cmp","","",3,null],[11,"eq","","",3,null],[11,"clone","","",3,null],[11,"fmt","","",3,null],[11,"hash","","",4,null],[11,"cmp","","",4,null],[11,"partial_cmp","","",4,null],[11,"lt","","",4,null],[11,"le","","",4,null],[11,"gt","","",4,null],[11,"ge","","",4,null],[11,"eq","","",4,null],[11,"ne","","",4,null],[11,"clone","","",4,null],[11,"fmt","","",4,null],[11,"wall","","Returns a `Clock` that uses wall-clock time.",5,{"inputs":[],"output":{"name":"clock"}}],[11,"new","","Creates a clock with `src` as the time provider.",5,{"inputs":[{"name":"s"}],"output":{"name":"self"}}],[11,"new_with_max_diff","","Creates a clock with `src` as the time provider, and `diff` as how far\nin the future we don't mind seeing updates from.",5,{"inputs":[{"name":"s"},{"name":"delta"}],"output":{"name":"self"}}],[11,"set_epoch","","Used to create a new "epoch" of clock times, mostly useful as a manual\noverride when a cluster member has skewed the clock time far\ninto the future.",5,null],[11,"now","","Creates a unique monotonic timestamp suitable for annotating messages we send.",5,null],[11,"observe","","Accepts a timestamp from an incoming message, and updates the clock\nso that further calls to `now` will always return a timestamp that\n`happens-after` either locally generated timestamps or that of the\ninput message. Returns an Error iff the delta from our local lock to\nthe observed timestamp is greater than our configured limit.",5,null],[11,"write_bytes","","",0,null],[11,"read_bytes","","",0,{"inputs":[{"name":"r"}],"output":{"name":"result"}}],[11,"as_timespec","","Returns a `time::Timespec` representing this timestamp.",4,null],[11,"as_u64","","Returns time in nanoseconds since the unix epoch.",4,null],[11,"sub","","",4,null],[11,"now","","",3,null],[11,"fmt","","",4,null],[11,"fmt","","",0,null]],"paths":[[3,"Timestamp"],[4,"Error"],[8,"ClockSource"],[3,"Wall"],[3,"WallT"],[3,"Clock"]]}; initSearch(searchIndex);