var searchIndex = {}; searchIndex["task_queue"] = {"doc":"Task queue\nThe implementation of the thread pool for Rust.","items":[[3,"TaskQueue","task_queue","",null,null],[3,"Task","","",null,null],[0,"error","","TaskQueue error.",null,null],[4,"TaskQueueError","task_queue::error","",null,null],[13,"Io","","",0,null],[11,"fmt","","",0,null],[11,"description","","",0,null],[11,"cause","","",0,null],[11,"fmt","","",0,null],[11,"from","","",0,{"inputs":[{"name":"error"}],"output":{"name":"taskqueueerror"}}],[0,"spawn_policy","task_queue","Trait that controls the number of threads.",null,null],[3,"StaticSpawnPolicy","task_queue::spawn_policy","",null,null],[8,"SpawnPolicy","","",null,null],[10,"get_count","","Returns current number of threads.",1,null],[11,"new","","",2,{"inputs":[],"output":{"name":"staticspawnpolicy"}}],[11,"get_count","","",2,null],[11,"new","task_queue","Create new task queue with 10 threads",3,{"inputs":[],"output":{"name":"taskqueue"}}],[11,"with_threads","","Create new task quque with selected threads count",3,{"inputs":[{"name":"usize"},{"name":"usize"}],"output":{"name":"taskqueue"}}],[11,"enqueue","","Schedule task in queue\n``` rust\nextern crate task_queue;",3,null],[11,"stop","","Stops tasks queue work.\nAll task in queue will be completed by threads.\nMethod not block current thread work, but returns threads joinHandles.",3,null],[11,"stop_wait","","Stops tasks queue work.\nAll task in queue will be completed by threads.\nMethod block current thread work.",3,null],[11,"stop_immediately","","Stops tasks queue work immediately and return are not completed tasks\nStops tasks queue work.\n# Examples\n``` rust\nextern crate task_queue;",3,null],[11,"get_threads_count","","Returns current threads count",3,null],[11,"get_max_threads","","Return max threads count",3,null],[11,"get_min_threads","","Return min threads count",3,null],[11,"set_spawn_policy","","Sets a policy for controlling the amount of threads",3,null],[11,"tasks_count","","Gets tasks count in queue",3,null],[11,"drop","","All task in queue will be completed by threads.",3,null],[11,"run","","",4,null]],"paths":[[4,"TaskQueueError"],[8,"SpawnPolicy"],[3,"StaticSpawnPolicy"],[3,"TaskQueue"],[3,"Task"]]}; initSearch(searchIndex);