var searchIndex = {}; searchIndex["chunk_store"] = {"doc":"# Chunk Store\nA simple, non-persistent, disk-based key-value store.","items":[[3,"ChunkStore","chunk_store","ChunkStore is a collection for holding all data chunks.\nImplements a maximum disk usage to restrict storage.",null,null],[4,"Error","","",null,null],[13,"Io","","",0,null],[13,"NotEnoughSpace","","",0,null],[13,"ChunkNotFound","","",0,null],[11,"fmt","","",0,null],[11,"from","","",0,{"inputs":[{"name":"error"}],"output":{"name":"error"}}],[11,"fmt","","",0,null],[11,"description","","",0,null],[11,"cause","","",0,null],[11,"new_in","","Creates new ChunkStore with `max_space` allowed storage space.",1,{"inputs":[{"name":"p"},{"name":"str"},{"name":"u64"}],"output":{"name":"result"}}],[11,"new","","Creates new ChunkStore with `max_space` allowed storage space.",1,{"inputs":[{"name":"str"},{"name":"u64"}],"output":{"name":"result"}}],[11,"put","","Stores a new data chunk under `name`.",1,null],[11,"delete","","Deletes the data chunk stored under `name`.",1,null],[11,"get","","Reads a data chunk stored under `name`.",1,null],[11,"has_chunk","","Tests if a data chunk with `name` is stored in this ChunkStore.",1,null],[11,"names","","Lists names of all data chunks currently stored in this ChunkStore.",1,null],[11,"max_space","","Returns the maximum amount of storage space available for this ChunkStore.",1,null],[11,"used_space","","Returns the amount of storage space already used by this ChunkStore.",1,null],[11,"has_space","","Tests if there is enough storage space to store a data chunk of\n`required_space` bytes.",1,null]],"paths":[[4,"Error"],[3,"ChunkStore"]]}; initSearch(searchIndex);