var searchIndex = {}; searchIndex["mongodb"] = {"doc":"# MongoDB Rust Driver","items":[[3,"CommandStarted","mongodb","Contains the information about a given command that started.",null,null],[12,"command","","",0,null],[12,"database_name","","",0,null],[12,"command_name","","",0,null],[12,"request_id","","",0,null],[12,"connection_string","","",0,null],[3,"ClientInner","","Interfaces with a MongoDB server or replica set.",null,null],[12,"read_preference","","Indicates how a server should be selected for read operations.",1,null],[12,"write_concern","","Describes the guarantees provided by MongoDB when reporting the success of a write operation.",1,null],[3,"ClientOptions","","Configuration options for a client.",null,null],[12,"log_file","","File path for command logging.",2,null],[12,"read_preference","","Client-level server selection preferences for read operations.",2,null],[12,"write_concern","","Client-level write guarantees when reporting a write success.",2,null],[12,"heartbeat_frequency_ms","","Frequency of server monitor updates; default 10000 ms.",2,null],[12,"server_selection_timeout_ms","","Timeout for selecting an appropriate server for operations; default 30000 ms.",2,null],[12,"local_threshold_ms","","The size of the latency window for selecting suitable servers; default 15 ms.",2,null],[4,"CommandResult","","Contains the information about a given command that completed.",null,null],[13,"Success","","",3,null],[12,"duration","mongodb::CommandResult","",3,null],[12,"reply","","",3,null],[12,"command_name","","",3,null],[12,"request_id","","",3,null],[12,"connection_string","","",3,null],[13,"Failure","mongodb","",3,null],[12,"duration","mongodb::CommandResult","",3,null],[12,"command_name","","",3,null],[12,"failure","","",3,null],[12,"request_id","","",3,null],[12,"connection_string","","",3,null],[4,"CommandType","mongodb","Executable command types that can be monitored by the driver.",null,null],[13,"Aggregate","","",4,null],[13,"Count","","",4,null],[13,"CreateCollection","","",4,null],[13,"CreateIndexes","","",4,null],[13,"CreateUser","","",4,null],[13,"DeleteMany","","",4,null],[13,"DeleteOne","","",4,null],[13,"Distinct","","",4,null],[13,"DropAllUsers","","",4,null],[13,"DropCollection","","",4,null],[13,"DropDatabase","","",4,null],[13,"DropIndexes","","",4,null],[13,"DropUser","","",4,null],[13,"Find","","",4,null],[13,"FindOneAndDelete","","",4,null],[13,"FindOneAndReplace","","",4,null],[13,"FindOneAndUpdate","","",4,null],[13,"GetUser","","",4,null],[13,"GetUsers","","",4,null],[13,"InsertMany","","",4,null],[13,"InsertOne","","",4,null],[13,"IsMaster","","",4,null],[13,"ListCollections","","",4,null],[13,"ListDatabases","","",4,null],[13,"ListIndexes","","",4,null],[13,"Suppressed","","",4,null],[13,"UpdateMany","","",4,null],[13,"UpdateOne","","",4,null],[0,"db","","Interface for database-level operations.",null,null],[3,"DatabaseInner","mongodb::db","Interfaces with a MongoDB database.",null,null],[12,"name","","The database name.",5,null],[12,"client","","A reference to the client that spawned this database.",5,null],[12,"read_preference","","Indicates how a server should be selected for read operations.",5,null],[12,"write_concern","","Describes the guarantees provided by MongoDB when reporting the success of a write operation.",5,null],[0,"options","","Options for database-level commands.",null,null],[3,"CreateCollectionOptions","mongodb::db::options","",null,null],[12,"capped","","",6,null],[12,"auto_index_id","","",6,null],[12,"size","","",6,null],[12,"max","","",6,null],[12,"use_power_of_two_sizes","","",6,null],[12,"no_padding","","",6,null],[3,"CreateUserOptions","","",null,null],[12,"custom_data","","",7,null],[12,"roles","","",7,null],[12,"write_concern","","",7,null],[3,"UserInfoOptions","","",null,null],[12,"show_credentials","","",8,null],[12,"show_privileges","","",8,null],[11,"new","","",6,{"inputs":[],"output":{"name":"createcollectionoptions"}}],[11,"new","","",7,{"inputs":[],"output":{"name":"createuseroptions"}}],[11,"new","","",8,{"inputs":[],"output":{"name":"userinfooptions"}}],[0,"roles","mongodb::db","Role-based database and command authorization.",null,null],[4,"SingleDatabaseRole","mongodb::db::roles","",null,null],[13,"Read","","",9,null],[13,"ReadWrite","","",9,null],[13,"DbAdmin","","",9,null],[13,"DbOwner","","",9,null],[13,"UserAdmin","","",9,null],[13,"ClusterAdmin","","",9,null],[13,"ClusterManager","","",9,null],[13,"ClusterMonitor","","",9,null],[13,"HostManager","","",9,null],[13,"Backup","","",9,null],[13,"Restore","","",9,null],[4,"AllDatabaseRole","","",null,null],[13,"Read","","",10,null],[13,"ReadWrite","","",10,null],[13,"UserAdmin","","",10,null],[13,"DbAdmin","","",10,null],[4,"Role","","",null,null],[13,"All","","",11,null],[13,"Single","","",11,null],[12,"role","mongodb::db::roles::Role","",11,null],[12,"db","","",11,null],[11,"to_string","mongodb::db::roles","",9,null],[11,"to_string","","",10,null],[11,"to_bson_array","","",11,{"inputs":[{"name":"vec"}],"output":{"name":"bson"}}],[6,"Database","mongodb::db","",null,null],[8,"ThreadedDatabase","","",null,null],[10,"open","","Creates a database representation with optional read and write controls.",12,{"inputs":[{"name":"client"},{"name":"str"},{"name":"option"},{"name":"option"}],"output":{"name":"database"}}],[10,"auth","","Logs in a user using the SCRAM-SHA-1 mechanism.",12,null],[10,"collection","","Creates a collection representation with inherited read and write controls.",12,null],[10,"collection_with_prefs","","Creates a collection representation with custom read and write controls.",12,null],[10,"get_req_id","","Return a unique operational request id.",12,null],[10,"command_cursor","","Generates a cursor for a relevant operational command.",12,null],[10,"command","","Sends an administrative command over find_one.",12,null],[10,"list_collections","","Returns a list of collections within the database.",12,null],[10,"list_collections_with_batch_size","","Returns a list of collections within the database with a custom batch size.",12,null],[10,"collection_names","","Returns a list of collection names within the database.",12,null],[10,"create_collection","","Creates a new collection.",12,null],[10,"create_user","","Creates a new user.",12,null],[10,"drop_all_users","","Permanently deletes all users from the database.",12,null],[10,"drop_collection","","Permanently deletes the collection from the database.",12,null],[10,"drop_database","","Permanently deletes the database from the server.",12,null],[10,"drop_user","","Permanently deletes the user from the database.",12,null],[10,"get_all_users","","Retrieves information about all users in the database.",12,null],[10,"get_user","","Retrieves information about a given user from the database.",12,null],[10,"get_users","","Retrieves information about a given set of users from the database.",12,null],[11,"open","","",13,{"inputs":[{"name":"client"},{"name":"str"},{"name":"option"},{"name":"option"}],"output":{"name":"database"}}],[11,"auth","","",13,null],[11,"collection","","",13,null],[11,"collection_with_prefs","","",13,null],[11,"get_req_id","","",13,null],[11,"command_cursor","","",13,null],[11,"command","","",13,null],[11,"list_collections","","",13,null],[11,"list_collections_with_batch_size","","",13,null],[11,"collection_names","","",13,null],[11,"create_collection","","",13,null],[11,"create_user","","",13,null],[11,"drop_all_users","","",13,null],[11,"drop_collection","","",13,null],[11,"drop_database","","",13,null],[11,"drop_user","","",13,null],[11,"get_all_users","","",13,null],[11,"get_user","","",13,null],[11,"get_users","","",13,null],[0,"coll","mongodb","Interface for collection-level operations.",null,null],[3,"Collection","mongodb::coll","Interfaces with a MongoDB collection.",null,null],[12,"db","","A reference to the database that spawned this collection.",14,null],[12,"namespace","","The namespace of this collection, formatted as db_name.coll_name.",14,null],[0,"error","","Write errors for collection-level operations.",null,null],[3,"WriteException","mongodb::coll::error","The error type for Write-related MongoDB operations.",null,null],[12,"write_concern_error","","",15,null],[12,"write_error","","",15,null],[12,"message","","",15,null],[3,"WriteConcernError","","The error struct for a write-concern related error.",null,null],[12,"code","","",16,null],[12,"details","","",16,null],[12,"message","","",16,null],[3,"WriteError","","The error struct for a write-related error.",null,null],[12,"code","","",17,null],[12,"message","","",17,null],[3,"BulkWriteException","","The error struct for Bulk-Write related MongoDB operations.",null,null],[12,"processed_requests","","",18,null],[12,"unprocessed_requests","","",18,null],[12,"write_errors","","",18,null],[12,"write_concern_error","","",18,null],[12,"message","","",18,null],[3,"BulkWriteError","","The error struct for a single bulk-write step, indicating the request\nand its index in the original bulk-write request.",null,null],[12,"index","","",19,null],[12,"code","","",19,null],[12,"message","","",19,null],[12,"request","","",19,null],[11,"clone","","",15,null],[11,"fmt","","",15,null],[11,"clone","","",16,null],[11,"fmt","","",16,null],[11,"clone","","",17,null],[11,"fmt","","",17,null],[11,"clone","","",18,null],[11,"fmt","","",18,null],[11,"clone","","",19,null],[11,"fmt","","",19,null],[11,"description","","",15,null],[11,"cause","","",15,null],[11,"description","","",18,null],[11,"cause","","",18,null],[11,"fmt","","",15,null],[11,"fmt","","",18,null],[11,"fmt","","",19,null],[11,"new","","Returns a new WriteException containing the given errors.",15,{"inputs":[{"name":"option"},{"name":"option"}],"output":{"name":"writeexception"}}],[11,"with_bulk_exception","","Downgrades a BulkWriteException into a WriteException, retrieving the\nlast write error to emulate the behavior of continue_on_error.",15,{"inputs":[{"name":"bulkwriteexception"}],"output":{"name":"writeexception"}}],[11,"validate_write_result","","Validates a single-write result.",15,{"inputs":[{"name":"document"},{"name":"writeconcern"}],"output":{"name":"result"}}],[11,"new","","Returns a new WriteConcernError containing the provided error information.",16,{"inputs":[{"name":"i32"},{"name":"writeconcern"},{"name":"t"}],"output":{"name":"writeconcernerror"}}],[11,"parse","","Parses a Bson document into a WriteConcernError with the provided write concern.",16,{"inputs":[{"name":"document"},{"name":"writeconcern"}],"output":{"name":"result"}}],[11,"new","","Returns a new WriteError containing the provided error information.",17,{"inputs":[{"name":"i32"},{"name":"t"}],"output":{"name":"writeerror"}}],[11,"parse","","Parses a Bson document into a WriteError.",17,{"inputs":[{"name":"document"}],"output":{"name":"result"}}],[11,"new","","Returns a new BulkWriteError containing the provided error information.",19,{"inputs":[{"name":"i32"},{"name":"i32"},{"name":"t"},{"name":"option"}],"output":{"name":"bulkwriteerror"}}],[11,"parse","","Parses a Bson document into a BulkWriteError.",19,{"inputs":[{"name":"document"}],"output":{"name":"result"}}],[11,"new","","Returns a new BulkWriteException containing the provided error information.",18,{"inputs":[{"name":"vec"},{"name":"vec"},{"name":"vec"},{"name":"option"}],"output":{"name":"bulkwriteexception"}}],[11,"add_unproccessed_model","","Adds a model to the vector of unprocessed models",18,null],[11,"add_unproccessed_models","","Adds a vector of models to the vector of unprocessed models.",18,null],[11,"add_bulk_write_exception","","Adds the data contined by another BulkWriteException to this one.",18,null],[11,"validate_bulk_write_result","","Validates a bulk write result.",18,{"inputs":[{"name":"document"},{"name":"writeconcern"}],"output":{"name":"result"}}],[0,"options","mongodb::coll","Options for collection-level operations.",null,null],[3,"AggregateOptions","mongodb::coll::options","Options for aggregation queries.",null,null],[12,"allow_disk_use","","",20,null],[12,"use_cursor","","",20,null],[12,"batch_size","","",20,null],[12,"max_time_ms","","",20,null],[12,"read_preference","","",20,null],[3,"CountOptions","","Options for count queries.",null,null],[12,"skip","","",21,null],[12,"limit","","",21,null],[12,"hint","","",21,null],[12,"hint_doc","","",21,null],[12,"max_time_ms","","",21,null],[12,"read_preference","","",21,null],[3,"DistinctOptions","","Options for distinct queries.",null,null],[12,"max_time_ms","","",22,null],[12,"read_preference","","",22,null],[3,"FindOptions","","Options for collection queries.",null,null],[12,"allow_partial_results","","",23,null],[12,"no_cursor_timeout","","",23,null],[12,"op_log_replay","","",23,null],[12,"skip","","",23,null],[12,"limit","","",23,null],[12,"cursor_type","","",23,null],[12,"batch_size","","",23,null],[12,"comment","","",23,null],[12,"max_time_ms","","",23,null],[12,"modifiers","","",23,null],[12,"projection","","",23,null],[12,"sort","","",23,null],[12,"read_preference","","",23,null],[3,"FindOneAndDeleteOptions","","Options for findOneAndDelete operations.",null,null],[12,"max_time_ms","","",24,null],[12,"projection","","",24,null],[12,"sort","","",24,null],[12,"write_concern","","",24,null],[3,"FindOneAndUpdateOptions","","Options for findOneAndUpdate operations.",null,null],[12,"return_document","","",25,null],[12,"max_time_ms","","",25,null],[12,"projection","","",25,null],[12,"sort","","",25,null],[12,"upsert","","",25,null],[12,"write_concern","","",25,null],[3,"IndexOptions","","Options for index operations.",null,null],[12,"background","","",26,null],[12,"expire_after_seconds","","",26,null],[12,"name","","",26,null],[12,"sparse","","",26,null],[12,"storage_engine","","",26,null],[12,"unique","","",26,null],[12,"version","","",26,null],[12,"default_language","","",26,null],[12,"language_override","","",26,null],[12,"text_version","","",26,null],[12,"weights","","",26,null],[12,"sphere_version","","",26,null],[12,"bits","","",26,null],[12,"max","","",26,null],[12,"min","","",26,null],[12,"bucket_size","","",26,null],[3,"IndexModel","","A single index model.",null,null],[12,"keys","","",27,null],[12,"options","","",27,null],[3,"InsertManyOptions","","Options for insertMany operations.",null,null],[12,"ordered","","",28,null],[12,"write_concern","","",28,null],[3,"UpdateOptions","","Options for update operations.",null,null],[12,"upsert","","",29,null],[12,"write_concern","","",29,null],[4,"CursorType","","Describes the type of cursor to return on collection queries.",null,null],[13,"NonTailable","","",30,null],[13,"Tailable","","",30,null],[13,"TailableAwait","","",30,null],[4,"ReturnDocument","","Describes the type of document to return on write operations.",null,null],[13,"Before","","",31,null],[13,"After","","",31,null],[4,"WriteModel","","Marker interface for writes that can be batched together.",null,null],[13,"InsertOne","","",32,null],[12,"document","mongodb::coll::options::WriteModel","",32,null],[13,"DeleteOne","mongodb::coll::options","",32,null],[12,"filter","mongodb::coll::options::WriteModel","",32,null],[13,"DeleteMany","mongodb::coll::options","",32,null],[12,"filter","mongodb::coll::options::WriteModel","",32,null],[13,"ReplaceOne","mongodb::coll::options","",32,null],[12,"filter","mongodb::coll::options::WriteModel","",32,null],[12,"replacement","","",32,null],[12,"upsert","","",32,null],[13,"UpdateOne","mongodb::coll::options","",32,null],[12,"filter","mongodb::coll::options::WriteModel","",32,null],[12,"update","","",32,null],[12,"upsert","","",32,null],[13,"UpdateMany","mongodb::coll::options","",32,null],[12,"filter","mongodb::coll::options::WriteModel","",32,null],[12,"update","","",32,null],[12,"upsert","","",32,null],[6,"ReplaceOptions","mongodb::coll::options","",null,null],[11,"eq","","",30,null],[11,"clone","","",30,null],[11,"eq","","",31,null],[11,"clone","","",31,null],[11,"clone","","",32,null],[11,"fmt","","",32,null],[11,"clone","","",20,null],[11,"clone","","",21,null],[11,"clone","","",22,null],[11,"clone","","",23,null],[11,"clone","","",24,null],[11,"clone","","",25,null],[11,"clone","","",26,null],[11,"clone","","",27,null],[11,"clone","","",28,null],[11,"clone","","",29,null],[11,"new","","",20,{"inputs":[],"output":{"name":"aggregateoptions"}}],[11,"new","","",21,{"inputs":[],"output":{"name":"countoptions"}}],[11,"new","","",22,{"inputs":[],"output":{"name":"distinctoptions"}}],[11,"new","","Creates a new FindOptions struct with default parameters.",23,{"inputs":[],"output":{"name":"findoptions"}}],[11,"with_limit","","Clone the current options struct with a new limit.",23,null],[11,"new","","",24,{"inputs":[],"output":{"name":"findoneanddeleteoptions"}}],[11,"new","","",25,{"inputs":[],"output":{"name":"findoneandupdateoptions"}}],[11,"new","","",26,{"inputs":[],"output":{"name":"indexoptions"}}],[11,"new","","",27,{"inputs":[{"name":"document"},{"name":"option"}],"output":{"name":"indexmodel"}}],[11,"name","","Returns the name of the index as specified by the options, or\nas automatically generated using the keys.",27,null],[11,"generate_index_name","","Generates the index name from keys.\nAuto-generated names have the form "key1_val1_key2_val2..."",27,null],[11,"to_bson","","Converts the model to its BSON document representation.",27,null],[11,"new","","",28,{"inputs":[{"name":"bool"},{"name":"option"}],"output":{"name":"insertmanyoptions"}}],[11,"to_bool","","",31,null],[11,"new","","",29,{"inputs":[{"name":"bool"},{"name":"option"}],"output":{"name":"updateoptions"}}],[0,"results","mongodb::coll","Results for collection-level operations.",null,null],[3,"BulkWriteResult","mongodb::coll::results","Results for a bulk write operation.",null,null],[12,"acknowledged","","",33,null],[12,"inserted_count","","",33,null],[12,"inserted_ids","","",33,null],[12,"matched_count","","",33,null],[12,"modified_count","","",33,null],[12,"deleted_count","","",33,null],[12,"upserted_count","","",33,null],[12,"upserted_ids","","",33,null],[12,"bulk_write_exception","","",33,null],[3,"BulkDeleteResult","","Results for a bulk delete operation.",null,null],[12,"acknowledged","","",34,null],[12,"deleted_count","","",34,null],[12,"write_exception","","",34,null],[3,"BulkUpdateResult","","Results for a bulk update operation.",null,null],[12,"acknowledged","","",35,null],[12,"matched_count","","",35,null],[12,"modified_count","","",35,null],[12,"upserted_ids","","",35,null],[12,"write_exception","","",35,null],[3,"InsertOneResult","","Results for an insertOne operation.",null,null],[12,"acknowledged","","",36,null],[12,"inserted_id","","",36,null],[12,"write_exception","","",36,null],[3,"InsertManyResult","","Results for an insertMany operation.",null,null],[12,"acknowledged","","",37,null],[12,"inserted_ids","","",37,null],[12,"bulk_write_exception","","",37,null],[3,"DeleteResult","","Results for a deletion operation.",null,null],[12,"acknowledged","","",38,null],[12,"deleted_count","","",38,null],[12,"write_exception","","",38,null],[3,"UpdateResult","","Results for an update operation.",null,null],[12,"acknowledged","","",39,null],[12,"matched_count","","",39,null],[12,"modified_count","","",39,null],[12,"upserted_id","","",39,null],[12,"write_exception","","",39,null],[11,"clone","","",33,null],[11,"clone","","",34,null],[11,"clone","","",35,null],[11,"clone","","",36,null],[11,"clone","","",37,null],[11,"clone","","",38,null],[11,"clone","","",39,null],[11,"new","","Extracts server reply information into a result.",33,{"inputs":[],"output":{"name":"bulkwriteresult"}}],[11,"process_bulk_delete_result","","Adds the data in a BulkDeleteResult to this result.",33,null],[11,"process_insert_many_result","","Adds the data in an InsertManyResult to this result.",33,null],[11,"process_bulk_update_result","","Adds the data in a BulkUpdateResult to this result.",33,null],[11,"new","","Extracts server reply information into a result.",34,{"inputs":[{"name":"document"},{"name":"option"}],"output":{"name":"bulkdeleteresult"}}],[11,"new","","Extracts server reply information into a result.",35,{"inputs":[{"name":"document"},{"name":"option"}],"output":{"name":"bulkupdateresult"}}],[11,"new","","Extracts server reply information into a result.",36,{"inputs":[{"name":"option"},{"name":"option"}],"output":{"name":"insertoneresult"}}],[11,"new","","Extracts server reply information into a result.",37,{"inputs":[{"name":"option"},{"name":"option"}],"output":{"name":"insertmanyresult"}}],[11,"new","","Extracts server reply information into a result.",38,{"inputs":[{"name":"document"},{"name":"option"}],"output":{"name":"deleteresult"}}],[11,"with_bulk_result","","",38,{"inputs":[{"name":"bulkdeleteresult"}],"output":{"name":"deleteresult"}}],[11,"new","","Extracts server reply information into a result.",39,{"inputs":[{"name":"document"},{"name":"option"}],"output":{"name":"updateresult"}}],[11,"with_bulk_result","","",39,{"inputs":[{"name":"bulkupdateresult"}],"output":{"name":"updateresult"}}],[11,"new","mongodb::coll","Creates a collection representation with optional read and write controls.",14,{"inputs":[{"name":"database"},{"name":"str"},{"name":"bool"},{"name":"option"},{"name":"option"}],"output":{"name":"collection"}}],[11,"get_req_id","","Returns a unique operational request id.",14,null],[11,"name","","Extracts the collection name from the namespace.\nIf the namespace is invalid, this method will panic.",14,null],[11,"drop","","Permanently deletes the collection from the database.",14,null],[11,"aggregate","","Runs an aggregation framework pipeline.",14,null],[11,"count","","Gets the number of documents matching the filter.",14,null],[11,"distinct","","Finds the distinct values for a specified field across a single collection.",14,null],[11,"find","","Returns a list of documents within the collection that match the filter.",14,null],[11,"find_one","","Returns the first document within the collection that matches the filter, or None.",14,null],[11,"find_one_with_command_type","","",14,null],[11,"find_one_and_delete","","Finds a single document and deletes it, returning the original.",14,null],[11,"find_one_and_replace","","Finds a single document and replaces it, returning either the original\nor replaced document.",14,null],[11,"find_one_and_update","","Finds a single document and updates it, returning either the original\nor updated document.",14,null],[11,"get_ordered_batches","","",14,{"inputs":[{"name":"vecdeque"}],"output":{"name":"vec"}}],[11,"bulk_write","","Sends a batch of writes to the server at the same time.",14,null],[11,"insert_one","","Inserts the provided document. If the document is missing an identifier,\nthe driver should generate one.",14,null],[11,"insert_many","","Inserts the provided documents. If any documents are missing an identifier,\nthe driver should generate them.",14,null],[11,"delete_one","","Deletes a single document.",14,null],[11,"delete_many","","Deletes multiple documents.",14,null],[11,"replace_one","","Replaces a single document.",14,null],[11,"update_one","","Updates a single document.",14,null],[11,"update_many","","Updates multiple documents.",14,null],[11,"create_index","","Create a single index.",14,null],[11,"create_index_model","","Create a single index with an IndexModel.",14,null],[11,"create_indexes","","Create multiple indexes.",14,null],[11,"drop_index","","Drop an index.",14,null],[11,"drop_index_string","","Drop an index by name.",14,null],[11,"drop_index_model","","Drop an index by IndexModel.",14,null],[11,"drop_indexes","","Drop all indexes in the collection.",14,null],[11,"list_indexes","","List all indexes in the collection.",14,null],[0,"common","mongodb","Library-wide utilities.",null,null],[3,"ReadPreference","mongodb::common","",null,null],[12,"mode","","Indicates how a server should be selected during read operations.",40,null],[12,"tag_sets","","Filters servers based on the first tag set that matches at least one server.",40,null],[3,"WriteConcern","","",null,null],[12,"w","","Write replication",41,null],[12,"w_timeout","","Used in conjunction with 'w'. Propagation timeout in ms.",41,null],[12,"j","","If true, will block until write operations have been committed to journal.",41,null],[12,"fsync","","If true and server is not journaling, blocks until server has synced all data files to disk.",41,null],[4,"ReadMode","","Indicates how a server should be selected during read operations.",null,null],[13,"Primary","","",42,null],[13,"PrimaryPreferred","","",42,null],[13,"Secondary","","",42,null],[13,"SecondaryPreferred","","",42,null],[13,"Nearest","","",42,null],[11,"eq","","",42,null],[11,"clone","","",42,null],[11,"fmt","","",42,null],[11,"from_str","","",42,{"inputs":[{"name":"str"}],"output":{"name":"result"}}],[11,"clone","","",40,null],[11,"fmt","","",40,null],[11,"new","","",40,{"inputs":[{"name":"readmode"},{"name":"option"}],"output":{"name":"readpreference"}}],[11,"to_document","","",40,null],[11,"eq","","",41,null],[11,"ne","","",41,null],[11,"clone","","",41,null],[11,"fmt","","",41,null],[11,"new","","",41,{"inputs":[],"output":{"name":"writeconcern"}}],[11,"to_bson","","",41,null],[0,"connstring","mongodb","Connection string parsing and options.",null,null],[3,"Host","mongodb::connstring","Encapsulates the hostname and port of a host.",null,null],[12,"host_name","","The hostname for this host.",43,null],[12,"ipc","","The inter-process communication file path, if this is an IPC host.",43,null],[12,"port","","The port to communicate on.",43,null],[3,"ConnectionOptions","","Encapsulates the options and read preference tags of a MongoDB connection.",null,null],[12,"options","","",44,null],[12,"read_pref_tags","","",44,null],[3,"ConnectionString","","Encapsulates information for connection to a single MongoDB host or replicated set.",null,null],[12,"hosts","","",45,null],[12,"string","","",45,null],[12,"user","","",45,null],[12,"password","","",45,null],[12,"database","","",45,null],[12,"collection","","",45,null],[12,"options","","",45,null],[5,"parse","","Parses a MongoDB connection string URI as defined by\n[the manual](http://docs.mongodb.org/manual/reference/connection-string/).",null,{"inputs":[{"name":"str"}],"output":{"name":"result"}}],[5,"parse_host","","",null,{"inputs":[{"name":"str"}],"output":{"name":"result"}}],[17,"DEFAULT_PORT","","",null,null],[17,"URI_SCHEME","","",null,null],[11,"hash","","",43,null],[11,"eq","","",43,null],[11,"ne","","",43,null],[11,"clone","","",43,null],[11,"fmt","","",43,null],[11,"has_ipc","","",43,null],[11,"eq","","",44,null],[11,"ne","","",44,null],[11,"clone","","",44,null],[11,"fmt","","",44,null],[11,"new","","Creates a new ConnectionOptions struct.",44,{"inputs":[{"name":"btreemap"},{"name":"vec"}],"output":{"name":"connectionoptions"}}],[11,"get","","",44,null],[11,"eq","","",45,null],[11,"ne","","",45,null],[11,"clone","","",45,null],[11,"fmt","","",45,null],[11,"new","","Creates a new ConnectionString for a single, unreplicated host.",45,{"inputs":[{"name":"str"},{"name":"u16"}],"output":{"name":"connectionstring"}}],[0,"cursor","mongodb","Iterable network cursor for MongoDB queries.",null,null],[3,"Cursor","mongodb::cursor","Maintains a connection to the server and lazily returns documents from a\nquery.",null,null],[17,"DEFAULT_BATCH_SIZE","","",null,null],[11,"command_cursor","","Construcs a new Cursor for a database command.",46,{"inputs":[{"name":"client"},{"name":"str"},{"name":"document"},{"name":"commandtype"},{"name":"readpreference"}],"output":{"name":"result"}}],[11,"query","","Executes a query where the batch size of the returned cursor is\nspecified.",46,{"inputs":[{"name":"client"},{"name":"string"},{"name":"i32"},{"name":"opqueryflags"},{"name":"i32"},{"name":"i32"},{"name":"document"},{"name":"option"},{"name":"commandtype"},{"name":"bool"},{"name":"readpreference"}],"output":{"name":"result"}}],[11,"query_with_stream","","",46,{"inputs":[{"name":"pooledstream"},{"name":"client"},{"name":"string"},{"name":"i32"},{"name":"opqueryflags"},{"name":"i32"},{"name":"i32"},{"name":"document"},{"name":"option"},{"name":"commandtype"},{"name":"bool"},{"name":"option"}],"output":{"name":"result"}}],[11,"next_n","","Attempts to read a specified number of BSON documents from the cursor.",46,null],[11,"next_batch","","Attempts to read a batch of BSON documents from the cursor.",46,null],[11,"has_next","","Checks whether there are any more documents for the cursor to return.",46,null],[11,"next","","Attempts to read a BSON document from the cursor.",46,null],[0,"error","mongodb","MongoDB Errors and Error Codes.",null,null],[4,"MaliciousServerErrorType","mongodb::error","",null,null],[13,"InvalidRnonce","","",47,null],[13,"InvalidServerSignature","","",47,null],[13,"NoServerSignature","","",47,null],[4,"Error","","The error type for MongoDB operations.",null,null],[13,"IoError","","I/O operation errors of `Read`, `Write`, `Seek`, and associated traits.",48,null],[13,"EncoderError","","A BSON struct could not be encoded.",48,null],[13,"DecoderError","","A BSON struct could not be decoded.",48,null],[13,"OIDError","","An ObjectId could not be generated.",48,null],[13,"FromHexError","","A hexadecimal string could not be converted to bytes.",48,null],[13,"WriteError","","A single-write operation failed.",48,null],[13,"BulkWriteError","","A bulk-write operation failed due to one or more lower-level write-related errors.",48,null],[13,"ArgumentError","","An invalid function or operational argument was provided.",48,null],[13,"OperationError","","A database operation failed to send or receive a reply.",48,null],[13,"ResponseError","","A database operation returned an invalid reply.",48,null],[13,"CursorNotFoundError","","A cursor operation failed to return a cursor.",48,null],[13,"PoisonLockError","","The application failed to secure a mutex due to a poisoned lock.",48,null],[13,"CodedError","","A server error with a given code.",48,null],[13,"EventListenerError","","The client was unable to emit the events to the listeners due to a poisoned lock;\nall event listeners were dropped, so they will have to be registered again. If the\nclient is unable to emit a failure result, the error it failed to report is bundled\ninto the `EventListenerError`.",48,null],[13,"MaliciousServerError","","The server that the client is attempting to authenticate to does not actually have\nthe user's authentication information stored.",48,null],[13,"DefaultError","","A standard error with a string description;\na more specific error should generally be used.",48,null],[4,"ErrorCode","","",null,null],[13,"OK","","",49,null],[13,"InternalError","","",49,null],[13,"BadValue","","",49,null],[13,"OBSOLETE_DuplicateKey","","",49,null],[13,"NoSuchKey","","",49,null],[13,"GraphContainsCycle","","",49,null],[13,"HostUnreachable","","",49,null],[13,"HostNotFound","","",49,null],[13,"UnknownError","","",49,null],[13,"FailedToParse","","",49,null],[13,"CannotMutateObject","","",49,null],[13,"UserNotFound","","",49,null],[13,"UnsupportedFormat","","",49,null],[13,"Unauthorized","","",49,null],[13,"TypeMismatch","","",49,null],[13,"Overflow","","",49,null],[13,"InvalidLength","","",49,null],[13,"ProtocolError","","",49,null],[13,"AuthenticationFailed","","",49,null],[13,"CannotReuseObject","","",49,null],[13,"IllegalOperation","","",49,null],[13,"EmptyArrayOperation","","",49,null],[13,"InvalidBSON","","",49,null],[13,"AlreadyInitialized","","",49,null],[13,"LockTimeout","","",49,null],[13,"RemoteValidationError","","",49,null],[13,"NamespaceNotFound","","",49,null],[13,"IndexNotFound","","",49,null],[13,"PathNotViable","","",49,null],[13,"NonExistentPath","","",49,null],[13,"InvalidPath","","",49,null],[13,"RoleNotFound","","",49,null],[13,"RolesNotRelated","","",49,null],[13,"PrivilegeNotFound","","",49,null],[13,"CannotBackfillArray","","",49,null],[13,"UserModificationFailed","","",49,null],[13,"RemoteChangeDetected","","",49,null],[13,"FileRenameFailed","","",49,null],[13,"FileNotOpen","","",49,null],[13,"FileStreamFailed","","",49,null],[13,"ConflictingUpdateOperators","","",49,null],[13,"FileAlreadyOpen","","",49,null],[13,"LogWriteFailed","","",49,null],[13,"CursorNotFound","","",49,null],[13,"UserDataInconsistent","","",49,null],[13,"LockBusy","","",49,null],[13,"NoMatchingDocument","","",49,null],[13,"NamespaceExists","","",49,null],[13,"InvalidRoleModification","","",49,null],[13,"ExceededTimeLimit","","",49,null],[13,"ManualInterventionRequired","","",49,null],[13,"DollarPrefixedFieldName","","",49,null],[13,"InvalidIdField","","",49,null],[13,"NotSingleValueField","","",49,null],[13,"InvalidDBRef","","",49,null],[13,"EmptyFieldName","","",49,null],[13,"DottedFieldName","","",49,null],[13,"RoleModificationFailed","","",49,null],[13,"CommandNotFound","","",49,null],[13,"DatabaseNotFound","","",49,null],[13,"ShardKeyNotFound","","",49,null],[13,"OplogOperationUnsupported","","",49,null],[13,"StaleShardVersion","","",49,null],[13,"WriteConcernFailed","","",49,null],[13,"MultipleErrorsOccurred","","",49,null],[13,"ImmutableField","","",49,null],[13,"CannotCreateIndex","","",49,null],[13,"IndexAlreadyExists","","",49,null],[13,"AuthSchemaIncompatible","","",49,null],[13,"ShardNotFound","","",49,null],[13,"ReplicaSetNotFound","","",49,null],[13,"InvalidOptions","","",49,null],[13,"InvalidNamespace","","",49,null],[13,"NodeNotFound","","",49,null],[13,"WriteConcernLegacyOK","","",49,null],[13,"NoReplicationEnabled","","",49,null],[13,"OperationIncomplete","","",49,null],[13,"CommandResultSchemaViolation","","",49,null],[13,"UnknownReplWriteConcern","","",49,null],[13,"RoleDataInconsistent","","",49,null],[13,"NoWhereParseContext","","",49,null],[13,"NoProgressMade","","",49,null],[13,"RemoteResultsUnavailable","","",49,null],[13,"DuplicateKeyValue","","",49,null],[13,"IndexOptionsConflict","","",49,null],[13,"IndexKeySpecsConflict","","",49,null],[13,"CannotSplit","","",49,null],[13,"SplitFailed","","",49,null],[13,"NetworkTimeout","","",49,null],[13,"CallbackCanceled","","",49,null],[13,"ShutdownInProgress","","",49,null],[13,"SecondaryAheadOfPrimary","","",49,null],[13,"InvalidReplicaSetConfig","","",49,null],[13,"NotYetInitialized","","",49,null],[13,"NotSecondary","","",49,null],[13,"OperationFailed","","",49,null],[13,"NoProjectionFound","","",49,null],[13,"DBPathInUse","","",49,null],[13,"WriteConcernNotDefined","","",49,null],[13,"CannotSatisfyWriteConcern","","",49,null],[13,"OutdatedClient","","",49,null],[13,"IncompatibleAuditMetadata","","",49,null],[13,"NewReplicaSetConfigurationIncompatible","","",49,null],[13,"NodeNotElectable","","",49,null],[13,"IncompatibleShardingMetadata","","",49,null],[13,"DistributedClockSkewed","","",49,null],[13,"LockFailed","","",49,null],[13,"InconsistentReplicaSetNames","","",49,null],[13,"ConfigurationInProgress","","",49,null],[13,"CannotInitializeNodeWithData","","",49,null],[13,"NotExactValueField","","",49,null],[13,"WriteConflict","","",49,null],[13,"InitialSyncFailure","","",49,null],[13,"InitialSyncOplogSourceMissing","","",49,null],[13,"CommandNotSupported","","",49,null],[13,"DocTooLargeForCapped","","",49,null],[13,"ConflictingOperationInProgress","","",49,null],[13,"NamespaceNotSharded","","",49,null],[13,"InvalidSyncSource","","",49,null],[13,"OplogStartMissing","","",49,null],[13,"DocumentValidationFailure","","",49,null],[13,"OBSOLETE_ReadAfterOptimeTimeout","","",49,null],[13,"NotAReplicaSet","","",49,null],[13,"IncompatibleElectionProtocol","","",49,null],[13,"CommandFailed","","",49,null],[13,"RPCProtocolNegotiationFailed","","",49,null],[13,"UnrecoverableRollbackError","","",49,null],[13,"LockNotFound","","",49,null],[13,"LockStateChangeFailed","","",49,null],[13,"SymbolNotFound","","",49,null],[13,"RLPInitializationFailed","","",49,null],[13,"ConfigServersInconsistent","","",49,null],[13,"FailedToSatisfyReadPreference","","",49,null],[13,"XXX_TEMP_NAME_ReadCommittedCurrentlyUnavailable","","",49,null],[13,"StaleTerm","","",49,null],[13,"CappedPositionLost","","",49,null],[13,"IncompatibleShardingConfigVersion","","",49,null],[13,"RemoteOplogStale","","",49,null],[13,"JSInterpreterFailure","","",49,null],[13,"NotMaster","","",49,null],[13,"DuplicateKey","","",49,null],[13,"InterruptedAtShutdown","","",49,null],[13,"Interrupted","","",49,null],[13,"BackgroundOperationInProgressForDatabase","","",49,null],[13,"BackgroundOperationInProgressForNamespace","","",49,null],[13,"PrepareConfigsFailedCode","","",49,null],[13,"DatabaseDifferCase","","",49,null],[13,"ShardKeyTooBig","","",49,null],[13,"SendStaleConfig","","",49,null],[13,"NotMasterNoSlaveOkCode","","",49,null],[13,"NotMasterOrSecondaryCode","","",49,null],[13,"OutOfDiskSpace","","",49,null],[13,"KeyTooLong","","",49,null],[13,"MaxError","","",49,null],[6,"Result","","A type for results generated by MongoDB related functions, where the Err type is mongodb::Error.",null,null],[11,"fmt","","",47,null],[11,"fmt","","",47,null],[11,"fmt","","",48,null],[11,"from","","",48,{"inputs":[{"name":"str"}],"output":{"name":"error"}}],[11,"from","","",48,{"inputs":[{"name":"string"}],"output":{"name":"error"}}],[11,"from","","",48,{"inputs":[{"name":"writeexception"}],"output":{"name":"error"}}],[11,"from","","",48,{"inputs":[{"name":"bulkwriteexception"}],"output":{"name":"error"}}],[11,"from","","",48,{"inputs":[{"name":"encodererror"}],"output":{"name":"error"}}],[11,"from","","",48,{"inputs":[{"name":"decodererror"}],"output":{"name":"error"}}],[11,"from","","",48,{"inputs":[{"name":"error"}],"output":{"name":"error"}}],[11,"from","","",48,{"inputs":[{"name":"fromhexerror"}],"output":{"name":"error"}}],[11,"from","","",48,{"inputs":[{"name":"error"}],"output":{"name":"error"}}],[11,"from","","",48,{"inputs":[{"name":"error"}],"output":{"name":"error"}}],[11,"from","","",48,{"inputs":[{"name":"poisonerror"}],"output":{"name":"error"}}],[11,"fmt","","",48,null],[11,"description","","",48,null],[11,"cause","","",48,null],[11,"eq","","",49,null],[11,"fmt","","",49,null],[11,"is_network_error","","",49,null],[11,"is_interruption","","",49,null],[11,"is_index_creation_error","","",49,null],[11,"fmt","","",49,null],[0,"gridfs","mongodb","Specification for storing and retrieving files that exceed 16MB within MongoDB.",null,null],[3,"FileCursor","mongodb::gridfs","A default cursor wrapper that maps bson documents into GridFS file representations.",null,null],[3,"StoreInner","","Interfaces with a GridFS instance.",null,null],[0,"file","","Lower-level file and chunk representations in GridFS.",null,null],[3,"File","mongodb::gridfs::file","A writable or readable file stream within GridFS.",null,null],[12,"doc","","The file document associated with this stream.",50,null],[3,"GfsFile","","A one-to-one representation of a file document within GridFS.",null,null],[12,"id","","",51,null],[12,"chunk_size","","",51,null],[12,"aliases","","",51,null],[12,"name","","",51,null],[12,"upload_date","","",51,null],[12,"content_type","","",51,null],[12,"metadata","","",51,null],[4,"Mode","","File modes.",null,null],[13,"Closed","","",52,null],[13,"Read","","",52,null],[13,"Write","","",52,null],[17,"DEFAULT_CHUNK_SIZE","","",null,null],[17,"MEGABYTE","","",null,null],[11,"eq","","",52,null],[11,"fmt","","",52,null],[11,"deref","","",50,null],[11,"deref_mut","","",50,null],[11,"new","","A new file stream with an id-referenced GridFS file.",50,{"inputs":[{"name":"store"},{"name":"objectid"},{"name":"mode"}],"output":{"name":"file"}}],[11,"with_name","","A new file stream with a name-and-id-referenced GridFS file.",50,{"inputs":[{"name":"store"},{"name":"string"},{"name":"objectid"},{"name":"mode"}],"output":{"name":"file"}}],[11,"with_doc","","A new file stream from a read file document.",50,{"inputs":[{"name":"store"},{"name":"document"}],"output":{"name":"file"}}],[11,"len","","Returns the byte length of the file.",50,null],[11,"is_empty","","Returns true if the file contains no bytes.",50,null],[11,"err_description","","Retrieves the description of the threaded error, if one occurred.",50,null],[11,"assert_mode","","Ensures the file mode matches the desired mode.",50,null],[11,"close","","Completes writing or reading and closes the file. This will be called when the\nfile is dropped, but errors will be ignored. Therefore, this method should\nbe called manually.",50,null],[11,"find_chunk","","",50,null],[11,"write","","",50,null],[11,"flush","","",50,null],[11,"read","","",50,null],[11,"drop","","",50,null],[11,"new","","Create a new GfsFile by ObjectId.",51,{"inputs":[{"name":"objectid"}],"output":{"name":"gfsfile"}}],[11,"with_name","","Create a new GfsFile by filename and ObjectId.",51,{"inputs":[{"name":"string"},{"name":"objectid"}],"output":{"name":"gfsfile"}}],[11,"with_doc","","Read a GridFS file document into a new GfsFile.",51,{"inputs":[{"name":"document"}],"output":{"name":"gfsfile"}}],[11,"to_bson","","Converts a GfsFile into a bson document.",51,null],[6,"Store","mongodb::gridfs","Alias for a thread-safe GridFS instance.",null,null],[8,"ThreadedStore","","",null,null],[10,"with_db","","A new GridFS store within the database with prefix 'fs'.",53,{"inputs":[{"name":"database"}],"output":{"name":"store"}}],[10,"with_prefix","","A new GridFS store within the database with a specified prefix.",53,{"inputs":[{"name":"database"},{"name":"string"}],"output":{"name":"store"}}],[10,"create","","Creates a new file.",53,null],[10,"open","","Opens a file by filename.",53,null],[10,"open_id","","Opens a file by object ID.",53,null],[10,"find","","Returns a cursor to all file documents matching the provided filter.",53,null],[10,"remove","","Removes a file from GridFS by filename.",53,null],[10,"remove_id","","Removes a file from GridFS by object ID.",53,null],[10,"put","","Inserts a new file from local into GridFS.",53,null],[10,"get","","Retrieves a file from GridFS into local storage.",53,null],[11,"next","","",54,null],[11,"next_n","","Returns the next n files.",54,null],[11,"next_batch","","Returns the next batch of files.",54,null],[11,"with_db","","",55,{"inputs":[{"name":"database"}],"output":{"name":"store"}}],[11,"with_prefix","","",55,{"inputs":[{"name":"database"},{"name":"string"}],"output":{"name":"store"}}],[11,"create","","",55,null],[11,"open","","",55,null],[11,"open_id","","",55,null],[11,"find","","",55,null],[11,"remove","","",55,null],[11,"remove_id","","",55,null],[11,"put","","",55,null],[11,"get","","",55,null],[0,"pool","mongodb","Connection pooling for a single MongoDB server.",null,null],[3,"ConnectionPool","mongodb::pool","Handles threaded connections to a MongoDB server.",null,null],[12,"host","","The connection host.",56,null],[3,"PooledStream","","Holds an available socket, with logic to return the socket\nto the connection pool when dropped.",null,null],[7,"DEFAULT_POOL_SIZE","","",null,null],[11,"clone","","",56,null],[11,"get_socket","","Returns a reference to the socket.",57,null],[11,"drop","","",57,null],[11,"new","","Returns a connection pool with a default size.",56,{"inputs":[{"name":"host"}],"output":{"name":"connectionpool"}}],[11,"with_size","","Returns a connection pool with a specified capped size.",56,{"inputs":[{"name":"host"},{"name":"usize"}],"output":{"name":"connectionpool"}}],[11,"set_size","","Sets the maximum number of open connections.",56,null],[11,"clear","","",56,null],[11,"acquire_stream","","Attempts to acquire a connected socket. If none are available and\nthe pool has not reached its maximum size, a new socket will connect.\nOtherwise, the function will block until a socket is returned to the pool.",56,null],[0,"topology","mongodb","MongoDB server set topology and asynchronous monitoring.",null,null],[3,"TopologyDescription","mongodb::topology","Topology information gathered from server set monitoring.",null,null],[12,"topology_type","","",58,null],[12,"set_name","","The set name for a replica set topology. If the topology\nis not a replica set, this will be an empty string.",58,null],[12,"servers","","Known servers within the topology.",58,null],[12,"heartbeat_frequency_ms","","The server connection health check frequency.\nThe default is 10 seconds.",58,null],[12,"local_threshold_ms","","The size of the latency window for selecting suitable servers.\nThe default is 15 milliseconds.",58,null],[12,"server_selection_timeout_ms","","This defines how long to block for server selection before\nreturning an error. The default is 30 seconds.",58,null],[3,"Topology","","Holds status and connection information about a server set.",null,null],[12,"config","","The initial connection configuration.",59,null],[12,"description","","Monitored topology information.",59,null],[4,"TopologyType","","Describes the type of topology for a server set.",null,null],[13,"Single","","",60,null],[13,"ReplicaSetNoPrimary","","",60,null],[13,"ReplicaSetWithPrimary","","",60,null],[13,"Sharded","","",60,null],[13,"Unknown","","",60,null],[0,"server","","MongoDB server representation.",null,null],[3,"ServerDescription","mongodb::topology::server","Server information gathered from server monitoring.",null,null],[12,"server_type","","The server type.",61,null],[12,"err","","Any error encountered while monitoring this server.",61,null],[12,"round_trip_time","","The average round-trip time over the last 5 monitoring checks.",61,null],[12,"min_wire_version","","The minimum wire version supported by this server.",61,null],[12,"max_wire_version","","The maximum wire version supported by this server.",61,null],[12,"me","","The server's host information, if it is part of a replica set.",61,null],[12,"hosts","","All hosts in the replica set known by this server.",61,null],[12,"passives","","All passive members of the replica set known by this server.",61,null],[12,"arbiters","","All arbiters in the replica set known by this server.",61,null],[12,"tags","","Server tags for targeted read operations on specific replica set members.",61,null],[12,"set_name","","The replica set name.",61,null],[12,"election_id","","The server's current election id, if it believes it is a primary.",61,null],[12,"primary","","The server's opinion of who the primary is.",61,null],[3,"Server","","Holds status and connection information about a single server.",null,null],[12,"host","","Host connection details.",62,null],[12,"description","","Monitored server information.",62,null],[4,"ServerType","","Describes the server role within a server set.",null,null],[13,"Standalone","","Standalone server.",63,null],[13,"Mongos","","Shard router.",63,null],[13,"RSPrimary","","Replica set primary.",63,null],[13,"RSSecondary","","Replica set secondary.",63,null],[13,"RSArbiter","","Replica set arbiter.",63,null],[13,"RSOther","","Replica set member of some other type.",63,null],[13,"RSGhost","","Replica set ghost member.",63,null],[13,"Unknown","","Server type is currently unknown.",63,null],[17,"ROUND_TRIP_DIVISOR","","Server round trip time is calculated as an exponentially-weighted moving\naveraging formula with a weighting factor. A factor of 0.2 places approximately\n85% of the RTT weight on the 9 most recent observations. Using a divisor instead\nof a floating point provides the closest integer accuracy.",null,null],[11,"eq","","",63,null],[11,"fmt","","",63,null],[11,"clone","","",63,null],[11,"fmt","","",61,null],[11,"clone","","",61,null],[11,"clone","","",62,null],[11,"from_str","","",63,{"inputs":[{"name":"str"}],"output":{"name":"result"}}],[11,"new","","Returns a default, unknown server description.",61,{"inputs":[],"output":{"name":"serverdescription"}}],[11,"update","","",61,null],[11,"set_err","","",61,null],[11,"clear","","",61,null],[11,"drop","","",62,null],[11,"new","","Returns a new server with the given host, initializing a new connection pool and monitor.",62,{"inputs":[{"name":"client"},{"name":"host"},{"name":"arc"},{"name":"bool"}],"output":{"name":"server"}}],[11,"acquire_stream","","Returns a server stream from the connection pool.",62,null],[11,"request_update","","Request an update from the monitor on the server status.",62,null],[0,"monitor","mongodb::topology","Asynchronous server and topology discovery and monitoring using isMaster results.",null,null],[3,"IsMasterResult","mongodb::topology::monitor","The result of an isMaster operation.",null,null],[12,"ok","","",64,null],[12,"is_master","","",64,null],[12,"max_bson_object_size","","",64,null],[12,"max_message_size_bytes","","",64,null],[12,"local_time","","",64,null],[12,"min_wire_version","","",64,null],[12,"max_wire_version","","",64,null],[12,"msg","","Shard-specific. mongos instances will add this field to the\nisMaster reply, and it will contain the value "isdbgrid".",64,null],[12,"is_replica_set","","",64,null],[12,"is_secondary","","",64,null],[12,"me","","",64,null],[12,"hosts","","",64,null],[12,"passives","","",64,null],[12,"arbiters","","",64,null],[12,"arbiter_only","","",64,null],[12,"tags","","",64,null],[12,"set_name","","",64,null],[12,"election_id","","",64,null],[12,"primary","","",64,null],[12,"hidden","","",64,null],[3,"Monitor","","Monitors and updates server and topology information.",null,null],[12,"running","","While true, the monitor will check server connection health\nat the topology's heartbeat frequency rate.",65,null],[11,"eq","","",64,null],[11,"ne","","",64,null],[11,"fmt","","",64,null],[11,"clone","","",64,null],[11,"new","","Parses an isMaster response document from the server.",64,{"inputs":[{"name":"document"}],"output":{"name":"result"}}],[11,"new","","Returns a new monitor connected to the server.",65,{"inputs":[{"name":"client"},{"name":"host"},{"name":"arc"},{"name":"arc"},{"name":"arc"}],"output":{"name":"monitor"}}],[11,"is_master","","Returns an isMaster server response using an owned monitor socket.",65,null],[11,"request_update","","",65,null],[11,"run","","Starts server monitoring.",65,null],[17,"DEFAULT_HEARTBEAT_FREQUENCY_MS","mongodb::topology","",null,null],[17,"DEFAULT_LOCAL_THRESHOLD_MS","","",null,null],[17,"DEFAULT_SERVER_SELECTION_TIMEOUT_MS","","",null,null],[11,"eq","","",60,null],[11,"fmt","","",60,null],[11,"clone","","",60,null],[11,"clone","","",58,null],[11,"clone","","",59,null],[11,"from_str","","",60,{"inputs":[{"name":"str"}],"output":{"name":"result"}}],[11,"new","","Returns a default, unknown topology description.",58,{"inputs":[],"output":{"name":"topologydescription"}}],[11,"acquire_stream","","Returns a server stream for read operations.",58,null],[11,"acquire_write_stream","","Returns a server stream for write operations.",58,null],[11,"filter_hosts","","Filters a given set of hosts based on the provided read preference tag sets.",58,null],[11,"filter_latency_hosts","","Filter out provided hosts by creating a latency window around\nthe server with the lowest round-trip time.",58,null],[11,"choose_write_hosts","","Returns suitable servers for write operations and whether to take a random element.",58,null],[11,"choose_hosts","","Returns suitable servers for read operations and whether to take a random element.",58,null],[11,"update_without_monitor","","Update the topology description, but don't start any monitors for new servers.",58,null],[11,"update","","Updates the topology description based on an updated server description.",58,null],[11,"new","","Returns a new topology with the given configuration and description.",59,{"inputs":[{"name":"connectionstring"},{"name":"option"}],"output":{"name":"result"}}],[11,"acquire_stream","","Returns a server stream for read operations.",59,null],[11,"acquire_write_stream","","Returns a server stream for write operations.",59,null],[0,"wire_protocol","mongodb","Low-level client-server communication over the MongoDB wire protocol.",null,null],[0,"flags","mongodb::wire_protocol","Operation flags.",null,null],[3,"OpReplyFlags","mongodb::wire_protocol::flags","Represents the bit vector of options for an OP_REPLY message.",null,null],[12,"cursor_not_found","","",66,null],[12,"query_failure","","",66,null],[12,"await_capable","","",66,null],[3,"OpUpdateFlags","","Represents the bit vector of options for an OP_UPDATE message.",null,null],[12,"upsert","","",67,null],[12,"multi_update","","",67,null],[3,"OpInsertFlags","","Represents the bit vector of flags for an OP_INSERT message.",null,null],[12,"continue_on_error","","",68,null],[3,"OpQueryFlags","","Represents the bit vector of flags for an OP_QUERY message.",null,null],[12,"tailable_cursor","","",69,null],[12,"slave_ok","","",69,null],[12,"oplog_relay","","",69,null],[12,"no_cursor_timeout","","",69,null],[12,"await_data","","",69,null],[12,"exhaust","","",69,null],[12,"partial","","",69,null],[11,"eq","","",66,null],[11,"ne","","",66,null],[11,"fmt","","",66,null],[11,"clone","","",66,null],[11,"from_i32","","Constructs a new struct from a bit vector of options.",66,{"inputs":[{"name":"i32"}],"output":{"name":"opreplyflags"}}],[11,"eq","","",67,null],[11,"ne","","",67,null],[11,"fmt","","",67,null],[11,"clone","","",67,null],[11,"eq","","",68,null],[11,"ne","","",68,null],[11,"fmt","","",68,null],[11,"clone","","",68,null],[11,"eq","","",69,null],[11,"ne","","",69,null],[11,"fmt","","",69,null],[11,"clone","","",69,null],[11,"no_flags","","Constructs a new struct with all flags set to false.",67,{"inputs":[],"output":{"name":"opupdateflags"}}],[11,"to_i32","","Gets the actual bit vector that the struct represents.",67,null],[11,"no_flags","","Constructs a new struct with all flags set to false.",68,{"inputs":[],"output":{"name":"opinsertflags"}}],[11,"to_i32","","Gets the actual bit vector that the struct represents.",68,null],[11,"no_flags","","Constructs a new struct with all flags set to false.",69,{"inputs":[],"output":{"name":"opqueryflags"}}],[11,"with_find_options","","Constructs a new struct with flags based on a FindOptions struct.",69,{"inputs":[{"name":"findoptions"}],"output":{"name":"opqueryflags"}}],[11,"to_i32","","Gets the actual bit vector that the struct represents.",69,null],[0,"operations","mongodb::wire_protocol","Wire protocol operational client-server communication logic.",null,null],[4,"Message","mongodb::wire_protocol::operations","Represents a message in the MongoDB Wire Protocol.",null,null],[13,"OpReply","","",70,null],[12,"header","mongodb::wire_protocol::operations::Message","The message header.",70,null],[12,"flags","","A Bit vector of reply options.",70,null],[12,"cursor_id","","Uniquely identifies the cursor being returned.",70,null],[12,"starting_from","","The starting position for the cursor.",70,null],[12,"number_returned","","The total number of documents being returned.",70,null],[12,"documents","","The documents being returned.",70,null],[13,"OpUpdate","mongodb::wire_protocol::operations","",70,null],[12,"header","mongodb::wire_protocol::operations::Message","The message header.",70,null],[12,"namespace","","The full qualified name of the collection, beginning with the\ndatabase name and a dot separator.",70,null],[12,"flags","","A bit vector of update options.",70,null],[12,"selector","","Identifies the document(s) to be updated.",70,null],[12,"update","","Instruction document for how to update the document(s).",70,null],[13,"OpInsert","mongodb::wire_protocol::operations","",70,null],[12,"header","mongodb::wire_protocol::operations::Message","The message header.",70,null],[12,"flags","","A bit vector of insert options.",70,null],[12,"namespace","","The full qualified name of the collection, beginning with the\ndatabase name and a dot separator.",70,null],[12,"documents","","The documents to be inserted.",70,null],[13,"OpQuery","mongodb::wire_protocol::operations","",70,null],[12,"header","mongodb::wire_protocol::operations::Message","The message header.",70,null],[12,"flags","","A bit vector of query options.",70,null],[12,"namespace","","The full qualified name of the collection, beginning with the\ndatabase name and a dot separator.",70,null],[12,"number_to_skip","","The number of initial documents to skip over in the query results.",70,null],[12,"number_to_return","","The total number of documents that should be returned by the query.",70,null],[12,"query","","Specifies which documents to return.",70,null],[12,"return_field_selector","","An optional projection of which fields should be present in the\ndocuments to be returned by the query.",70,null],[13,"OpGetMore","mongodb::wire_protocol::operations","",70,null],[12,"header","mongodb::wire_protocol::operations::Message","The message header.",70,null],[12,"namespace","","The full qualified name of the collection, beginning with the\ndatabase name and a dot separator.",70,null],[12,"number_to_return","","The total number of documents that should be returned by the query.",70,null],[12,"cursor_id","","Uniquely identifies the cursor being returned.",70,null],[11,"new_update","mongodb::wire_protocol::operations","Constructs a new message for an update.",70,{"inputs":[{"name":"i32"},{"name":"string"},{"name":"opupdateflags"},{"name":"document"},{"name":"document"}],"output":{"name":"result"}}],[11,"new_insert","","Constructs a new message request for an insertion.",70,{"inputs":[{"name":"i32"},{"name":"opinsertflags"},{"name":"string"},{"name":"vec"}],"output":{"name":"result"}}],[11,"new_query","","Constructs a new message request for a query.",70,{"inputs":[{"name":"i32"},{"name":"opqueryflags"},{"name":"string"},{"name":"i32"},{"name":"i32"},{"name":"document"},{"name":"option"}],"output":{"name":"result"}}],[11,"new_get_more","","Constructs a new "get more" request message.",70,{"inputs":[{"name":"i32"},{"name":"string"},{"name":"i32"},{"name":"i64"}],"output":{"name":"message"}}],[11,"write_update","","Writes a serialized update message to a given buffer.",70,{"inputs":[{"name":"w"},{"name":"header"},{"name":"str"},{"name":"opupdateflags"},{"name":"document"},{"name":"document"}],"output":{"name":"result"}}],[11,"write_get_more","","Writes a serialized "get more" request to a given buffer.",70,{"inputs":[{"name":"w"},{"name":"header"},{"name":"str"},{"name":"i32"},{"name":"i64"}],"output":{"name":"result"}}],[11,"write","","Attemps to write the serialized message to a buffer.",70,null],[11,"read","","Attempts to read a serialized reply Message from a buffer.",70,{"inputs":[{"name":"t"}],"output":{"name":"result"}}],[11,"fmt","mongodb","",0,null],[11,"fmt","","",3,null],[11,"clone","","",4,null],[11,"eq","","",4,null],[11,"to_str","","",4,null],[11,"is_write_command","","",4,null],[6,"Client","","",null,null],[8,"ThreadedClient","","",null,null],[10,"connect","","Creates a new Client directly connected to a single MongoDB server.",71,{"inputs":[{"name":"str"},{"name":"u16"}],"output":{"name":"result"}}],[10,"connect_with_options","","Creates a new Client directly connected to a single MongoDB server with options.",71,{"inputs":[{"name":"str"},{"name":"u16"},{"name":"clientoptions"}],"output":{"name":"result"}}],[10,"with_uri","","Creates a new Client connected to a complex topology, such as a\nreplica set or sharded cluster.",71,{"inputs":[{"name":"str"}],"output":{"name":"result"}}],[10,"with_uri_and_options","","Creates a new Client connected to a complex topology, such as a\nreplica set or sharded cluster, with options.",71,{"inputs":[{"name":"str"},{"name":"clientoptions"}],"output":{"name":"result"}}],[10,"with_config","","Create a new Client with manual connection configurations.\n`connect` and `with_uri` should generally be used as higher-level constructors.",71,{"inputs":[{"name":"connectionstring"},{"name":"option"},{"name":"option"}],"output":{"name":"result"}}],[10,"db","","Creates a database representation.",71,null],[10,"db_with_prefs","","Creates a database representation with custom read and write controls.",71,null],[10,"acquire_stream","","Acquires a connection stream from the pool, along with slave_ok and should_send_read_pref.",71,null],[10,"acquire_write_stream","","Acquires a connection stream from the pool for write operations.",71,null],[10,"get_req_id","","Returns a unique operational request id.",71,null],[10,"database_names","","Returns a list of all database names that exist on the server.",71,null],[10,"drop_database","","Drops the database defined by `db_name`.",71,null],[10,"is_master","","Reports whether this instance is a primary, master, mongos, or standalone mongod instance.",71,null],[10,"add_start_hook","","Sets a function to be run every time a command starts.",71,null],[10,"add_completion_hook","","Sets a function to be run every time a command completes.",71,null],[11,"new","","Creates a new default options struct.",2,{"inputs":[],"output":{"name":"clientoptions"}}],[11,"with_log_file","","Creates a new options struct with a specified log file.",2,{"inputs":[{"name":"str"}],"output":{"name":"clientoptions"}}],[11,"connect","","",72,{"inputs":[{"name":"str"},{"name":"u16"}],"output":{"name":"result"}}],[11,"connect_with_options","","",72,{"inputs":[{"name":"str"},{"name":"u16"},{"name":"clientoptions"}],"output":{"name":"result"}}],[11,"with_uri","","",72,{"inputs":[{"name":"str"}],"output":{"name":"result"}}],[11,"with_uri_and_options","","",72,{"inputs":[{"name":"str"},{"name":"clientoptions"}],"output":{"name":"result"}}],[11,"with_config","","",72,{"inputs":[{"name":"connectionstring"},{"name":"option"},{"name":"option"}],"output":{"name":"result"}}],[11,"db","","",72,null],[11,"db_with_prefs","","",72,null],[11,"acquire_stream","","",72,null],[11,"acquire_write_stream","","",72,null],[11,"get_req_id","","",72,null],[11,"database_names","","",72,null],[11,"drop_database","","",72,null],[11,"is_master","","",72,null],[11,"add_start_hook","","",72,null],[11,"add_completion_hook","","",72,null]],"paths":[[3,"CommandStarted"],[3,"ClientInner"],[3,"ClientOptions"],[4,"CommandResult"],[4,"CommandType"],[3,"DatabaseInner"],[3,"CreateCollectionOptions"],[3,"CreateUserOptions"],[3,"UserInfoOptions"],[4,"SingleDatabaseRole"],[4,"AllDatabaseRole"],[4,"Role"],[8,"ThreadedDatabase"],[6,"Database"],[3,"Collection"],[3,"WriteException"],[3,"WriteConcernError"],[3,"WriteError"],[3,"BulkWriteException"],[3,"BulkWriteError"],[3,"AggregateOptions"],[3,"CountOptions"],[3,"DistinctOptions"],[3,"FindOptions"],[3,"FindOneAndDeleteOptions"],[3,"FindOneAndUpdateOptions"],[3,"IndexOptions"],[3,"IndexModel"],[3,"InsertManyOptions"],[3,"UpdateOptions"],[4,"CursorType"],[4,"ReturnDocument"],[4,"WriteModel"],[3,"BulkWriteResult"],[3,"BulkDeleteResult"],[3,"BulkUpdateResult"],[3,"InsertOneResult"],[3,"InsertManyResult"],[3,"DeleteResult"],[3,"UpdateResult"],[3,"ReadPreference"],[3,"WriteConcern"],[4,"ReadMode"],[3,"Host"],[3,"ConnectionOptions"],[3,"ConnectionString"],[3,"Cursor"],[4,"MaliciousServerErrorType"],[4,"Error"],[4,"ErrorCode"],[3,"File"],[3,"GfsFile"],[4,"Mode"],[8,"ThreadedStore"],[3,"FileCursor"],[6,"Store"],[3,"ConnectionPool"],[3,"PooledStream"],[3,"TopologyDescription"],[3,"Topology"],[4,"TopologyType"],[3,"ServerDescription"],[3,"Server"],[4,"ServerType"],[3,"IsMasterResult"],[3,"Monitor"],[3,"OpReplyFlags"],[3,"OpUpdateFlags"],[3,"OpInsertFlags"],[3,"OpQueryFlags"],[4,"Message"],[8,"ThreadedClient"],[6,"Client"]]}; initSearch(searchIndex);