var searchIndex = {}; searchIndex["bip_metainfo"] = {"doc":"Library for parsing and building metainfo files.","items":[[6,"InfoHash","bip_metainfo","",null,null],[3,"DirectAccessor","","Accessor that pulls data in directly from memory.",null,null],[3,"FileAccessor","","Accessor that pulls data in from the file system.",null,null],[3,"MetainfoBuilder","","Builder for generating a torrent file from some accessor.",null,null],[3,"InfoDictionary","","Contains files and checksums for the torrent.",null,null],[3,"MetainfoFile","","Contains optional and required information for the torrent.",null,null],[3,"File","","Contains information for a single file.",null,null],[4,"PieceLength","","Enumerates settings for piece length for generating a torrent file.",null,null],[13,"OptBalanced","","Optimize piece length for torrent file size and file transfer.",0,null],[13,"OptFileSize","","Optimize piece length for torrent file size.",0,null],[13,"OptTransfer","","Optimize piece length for torrent file transfer.",0,null],[13,"Custom","","Custom piece length.",0,null],[11,"new","","Create a new FileAccessor from the given file/directory path.",1,{"inputs":[{"name":"t"}],"output":{"name":"result"}}],[11,"into_accessor","","",1,null],[11,"access_directory","","",1,null],[11,"access_metadata","","",1,null],[11,"access_pieces","","",1,null],[11,"new","","Create a new DirectAccessor from the given file name and contents.",2,null],[11,"into_accessor","","",2,null],[11,"access_directory","","",2,null],[11,"access_metadata","","",2,null],[11,"access_pieces","","",2,null],[11,"new","","Create a new MetainfoBuilder with some default values set.",3,{"inputs":[],"output":{"name":"metainfobuilder"}}],[11,"set_main_tracker","","Set the main tracker that this torrent file points to.",3,null],[11,"set_creation_date","","Set the creation date for the torrent.",3,null],[11,"set_comment","","Set a comment for the torrent file.",3,null],[11,"set_created_by","","Set the created by for the torrent file.",3,null],[11,"set_private_flag","","Sets the private flag for the torrent file.",3,null],[11,"set_piece_length","","Sets the piece length for the torrent file.",3,null],[11,"build_as_bytes","","Build the metainfo file from the given accessor and the number of worker threads.",3,null],[0,"error","","Errors for torrent file building and parsing.",null,null],[3,"ParseError","bip_metainfo::error","Error raised as a result of parsing a torrent file.",null,null],[4,"ParseErrorKind","","Enumerates classes of errors that could have raised a ParseError.",null,null],[13,"InvalidData","","Data is invalid.",4,null],[13,"MissingData","","Missing required data.",4,null],[13,"CorruptData","","Data is corrupted.",4,null],[13,"IoError","","Some IO related error occured.",4,null],[6,"ParseResult","","Result of parsing a torrent file.",null,null],[11,"eq","","",5,null],[11,"ne","","",5,null],[11,"hash","","",5,null],[11,"fmt","","",5,null],[11,"clone","","",5,null],[11,"eq","","",4,null],[11,"hash","","",4,null],[11,"fmt","","",4,null],[11,"clone","","",4,null],[11,"new","","",5,{"inputs":[{"name":"parseerrorkind"},{"name":"d"}],"output":{"name":"parseerror"}}],[11,"kind","","",5,null],[11,"detail","","",5,null],[11,"from","","",5,{"inputs":[{"name":"error"}],"output":{"name":"parseerror"}}],[11,"from","","",5,{"inputs":[{"name":"error"}],"output":{"name":"parseerror"}}],[11,"fmt","bip_metainfo","",6,null],[11,"from_bytes","","Read a MetainfoFile from the given bytes.",6,{"inputs":[{"name":"b"}],"output":{"name":"parseresult"}}],[11,"info_hash","","InfoHash of the InfoDictionary used to identify swarms of peers exchaning these files.",6,null],[11,"main_tracker","","Announce url for the main tracker of the metainfo file.",6,null],[11,"comment","","Comment included within the metainfo file.",6,null],[11,"created_by","","Person or group that created the metainfo file.",6,null],[11,"encoding","","String encoding format of the peices portion of the info dictionary.",6,null],[11,"creation_date","","Creation date in UNIX epoch format for the metainfo file.",6,null],[11,"info","","InfoDictionary for the metainfo file.",6,null],[11,"fmt","","",7,null],[11,"directory","","Some file directory if this is a multi-file torrent, otherwise None.",7,null],[11,"piece_length","","Length in bytes of each piece.",7,null],[11,"is_private","","Whether or not the torrent is private.",7,null],[11,"pieces","","Iterator over each of the pieces SHA-1 hash.",7,null],[11,"files","","Iterator over each file within the torrent file.",7,null],[11,"fmt","","",8,null],[11,"length","","Length of the file in bytes.",8,null],[11,"md5sum","","Optional md5sum of the file.",8,null],[11,"paths","","Iterator over the path elements of the file.",8,null],[0,"iter","","Iterators over torrent file information.",null,null],[3,"Files","bip_metainfo::iter","Iterator over each File within the MetainfoFile.",null,null],[3,"Pieces","","Iterator over each piece hash within the MetainfoFile.",null,null],[3,"Paths","","Iterator over each file path element within the MetainfoFile.",null,null],[11,"new","","",9,null],[11,"next","","",9,null],[11,"new","","",10,null],[11,"next","","",10,null],[11,"new","","",11,null],[11,"next","","",11,null],[8,"Accessor","bip_metainfo","Trait for accessing the data used to construct a torrent file.",null,null],[10,"access_directory","","Access the directory that all files should be relative to.",12,null],[10,"access_metadata","","Access the metadata for all files including their length and path.",12,null],[10,"access_pieces","","Access the sequential pieces that make up all of the files.",12,null],[8,"IntoAccessor","","Trait for types convertible as a Result into some Accessor.",null,null],[16,"Accessor","","Concrete Accessor type that will be converted into.",13,null],[10,"into_accessor","","Convert the type into some Accessor as a Result.",13,null]],"paths":[[4,"PieceLength"],[3,"FileAccessor"],[3,"DirectAccessor"],[3,"MetainfoBuilder"],[4,"ParseErrorKind"],[3,"ParseError"],[3,"MetainfoFile"],[3,"InfoDictionary"],[3,"File"],[3,"Files"],[3,"Pieces"],[3,"Paths"],[8,"Accessor"],[8,"IntoAccessor"]]}; initSearch(searchIndex);