var searchIndex = {}; searchIndex["ssdp"] = {"doc":"An asynchronous abstraction for discovering devices and services on a network.","items":[[3,"SSDPReceiver","ssdp","A non-blocking SSDP message receiver.",null,null],[3,"SSDPIter","","Iterator for an `SSDPReceiver`.",null,null],[4,"SSDPError","","Enumerates all errors that can occur when dealing with an SSDP message.",null,null],[13,"InvalidHttp","","Message is not valid HTTP.",0,null],[13,"InvalidHttpVersion","","Message did not specify HTTP/1.1 as version.",0,null],[13,"ResponseCode","","Message consists of an error code.",0,null],[13,"InvalidMethod","","Method supplied is not a valid SSDP method.",0,null],[13,"InvalidUri","","Uri supplied is not a valid SSDP uri.",0,null],[13,"MissingHeader","","Header is missing from the message.",0,null],[13,"InvalidHeader","","Header has an invalid value.",0,null],[13,"Other","","Some other error occurred.",0,null],[4,"FieldMap","","Enumerates key value pairs embedded within SSDP header fields.",null,null],[13,"UPnP","","The "upnp" key with its associated value.",1,null],[13,"UUID","","The "uuid" key with its associated value.",1,null],[13,"URN","","The "urn" key with its associated value.",1,null],[13,"Unknown","","An undefined key, the key and it's value are returned.",1,null],[11,"fmt","","",0,null],[11,"fmt","","",0,null],[11,"from","","",0,{"inputs":[{"name":"t"}],"output":{"name":"ssdperror"}}],[11,"fmt","","",1,null],[11,"hash","","",1,null],[11,"eq","","",1,null],[11,"ne","","",1,null],[11,"clone","","",1,null],[11,"new","","Breaks a field up into a single key and single value which are\nseparated by a colon and neither of which are empty.",1,null],[11,"fmt","","",1,null],[11,"next","","",2,null],[11,"new","","Construct a receiver that receives bytes from a number of UdpSockets and\ntries to construct an object T from them. If a duration is provided, the\nchannel will be shutdown after the specified duration.",3,{"inputs":[{"name":"vec"},{"name":"option"}],"output":{"name":"result"}}],[11,"try_recv","","Non-blocking method that attempts to read a value from the receiver.",3,null],[11,"recv","","Blocking method that reads a value from the receiver until one is available.",3,null],[11,"into_iter","","",3,null],[11,"drop","","",3,null],[0,"header","","Headers and primitives for parsing headers within SSDP requests.",null,null],[3,"Location","ssdp::header","`Location` header, defined in\n[RFC7231](http://tools.ietf.org/html/rfc7231#section-7.1.2)",null,null],[12,"0","","",4,null],[3,"Server","","`Server` header, defined in [RFC7231](http://tools.ietf.org/html/rfc7231#section-7.4.2)",null,null],[12,"0","","",5,null],[3,"CacheControl","","`Cache-Control` header, defined in [RFC7234](https://tools.ietf.org/html/rfc7234#section-5.2)",null,null],[12,"0","","",6,null],[4,"CacheDirective","","`CacheControl` contains a list of these directives.",null,null],[13,"NoCache","",""no-cache"",7,null],[13,"NoStore","",""no-store"",7,null],[13,"NoTransform","",""no-transform"",7,null],[13,"OnlyIfCached","",""only-if-cached"",7,null],[13,"MaxAge","",""max-age=delta"",7,null],[13,"MaxStale","",""max-stale=delta"",7,null],[13,"MinFresh","",""min-fresh=delta"",7,null],[13,"MustRevalidate","",""must-revalidate"",7,null],[13,"Public","",""public"",7,null],[13,"Private","",""private"",7,null],[13,"ProxyRevalidate","",""proxy-revalidate"",7,null],[13,"SMaxAge","",""s-maxage=delta"",7,null],[13,"Extension","","Extension directives. Optionally include an argument.",7,null],[3,"BootID","","Represents a header used to denote the boot instance of a root device.",null,null],[12,"0","","",8,null],[3,"ConfigID","","Represents a header used to denote the configuration of a device's DDD.",null,null],[12,"0","","",9,null],[3,"Man","","Represents a header used to specify HTTP extension.",null,null],[3,"MX","","Represents a header used to specify the maximum time that devices should wait\nbefore sending a response.",null,null],[12,"0","","",10,null],[3,"NT","","Represents a header used to specify a notification type.",null,null],[12,"0","","",11,null],[3,"SearchPort","","Represents a header used to specify a unicast port to send search requests to.",null,null],[12,"0","","",12,null],[3,"SecureLocation","","Represents a header used to specify a secure url for a device's DDD.",null,null],[12,"0","","",13,null],[3,"USN","","Represents a header which specifies a unique service name.",null,null],[12,"0","","",14,null],[12,"1","","",14,null],[4,"NTS","","Represents a header which specifies a notification sub type.",null,null],[13,"Alive","","An entity is announcing itself to the network.",15,null],[13,"Update","","An entity is updating its presence on the network. Introduced in UPnP 1.0.",15,null],[13,"ByeBye","","An entity is removing itself from the network.",15,null],[4,"ST","","Represents a header which specifies the search target.",null,null],[13,"All","","",16,null],[13,"Target","","",16,null],[11,"fmt","","",8,null],[11,"hash","","",8,null],[11,"eq","","",8,null],[11,"ne","","",8,null],[11,"clone","","",8,null],[11,"header_name","","",8,{"inputs":[],"output":{"name":"str"}}],[11,"parse_header","","",8,null],[11,"fmt_header","","",8,null],[11,"fmt","","",9,null],[11,"hash","","",9,null],[11,"eq","","",9,null],[11,"ne","","",9,null],[11,"clone","","",9,null],[11,"header_name","","",9,{"inputs":[],"output":{"name":"str"}}],[11,"parse_header","","",9,null],[11,"fmt_header","","",9,null],[11,"fmt","","",17,null],[11,"hash","","",17,null],[11,"eq","","",17,null],[11,"clone","","",17,null],[11,"header_name","","",17,{"inputs":[],"output":{"name":"str"}}],[11,"parse_header","","",17,null],[11,"fmt_header","","",17,null],[11,"fmt","","",10,null],[11,"hash","","",10,null],[11,"eq","","",10,null],[11,"ne","","",10,null],[11,"clone","","",10,null],[11,"new","","",10,{"inputs":[{"name":"u8"}],"output":{"name":"ssdpresult"}}],[11,"header_name","","",10,{"inputs":[],"output":{"name":"str"}}],[11,"parse_header","","",10,null],[11,"fmt_header","","",10,null],[11,"fmt","","",11,null],[11,"hash","","",11,null],[11,"eq","","",11,null],[11,"ne","","",11,null],[11,"clone","","",11,null],[11,"new","","",11,{"inputs":[{"name":"fieldmap"}],"output":{"name":"nt"}}],[11,"header_name","","",11,{"inputs":[],"output":{"name":"str"}}],[11,"parse_header","","",11,null],[11,"fmt_header","","",11,null],[11,"fmt","","",15,null],[11,"hash","","",15,null],[11,"eq","","",15,null],[11,"clone","","",15,null],[11,"header_name","","",15,{"inputs":[],"output":{"name":"str"}}],[11,"parse_header","","",15,null],[11,"fmt_header","","",15,null],[11,"fmt","","",12,null],[11,"hash","","",12,null],[11,"eq","","",12,null],[11,"ne","","",12,null],[11,"clone","","",12,null],[11,"header_name","","",12,{"inputs":[],"output":{"name":"str"}}],[11,"parse_header","","",12,null],[11,"fmt_header","","",12,null],[11,"fmt","","",13,null],[11,"hash","","",13,null],[11,"eq","","",13,null],[11,"ne","","",13,null],[11,"clone","","",13,null],[11,"header_name","","",13,{"inputs":[],"output":{"name":"str"}}],[11,"parse_header","","",13,null],[11,"fmt_header","","",13,null],[11,"fmt","","",16,null],[11,"hash","","",16,null],[11,"eq","","",16,null],[11,"ne","","",16,null],[11,"clone","","",16,null],[11,"header_name","","",16,{"inputs":[],"output":{"name":"str"}}],[11,"parse_header","","",16,null],[11,"fmt_header","","",16,null],[11,"fmt","","",14,null],[11,"hash","","",14,null],[11,"eq","","",14,null],[11,"ne","","",14,null],[11,"clone","","",14,null],[11,"new","","",14,{"inputs":[{"name":"fieldmap"},{"name":"option"}],"output":{"name":"usn"}}],[11,"header_name","","",14,{"inputs":[],"output":{"name":"str"}}],[11,"parse_header","","",14,null],[11,"fmt_header","","",14,null],[8,"HeaderRef","","Trait for viewing the contents of a header structure.",null,null],[10,"get","","View a reference to a header field if it exists.",18,null],[10,"get_raw","","View a reference to the raw bytes of a header field if it exists.",18,null],[8,"HeaderMut","","Trait for manipulating the contents of a header structure.",null,null],[10,"set","","Set a header to the given value.",19,null],[10,"set_raw","","Set a header to the given raw bytes.",19,null],[0,"message","ssdp","Messaging primitives for discovering devices and services.",null,null],[3,"SearchRequest","ssdp::message","Search request that can be sent via unicast or multicast to devices on the network.",null,null],[3,"SearchResponse","","Search response that can be received or sent via unicast to devices on the network.",null,null],[3,"SearchListener","","Search listener that can listen for search messages sent within the network.",null,null],[3,"NotifyMessage","","Notify message that can be sent via multicast to devices on the network.",null,null],[3,"NotifyListener","","Notify listener that can listen to notify messages sent within the network.",null,null],[4,"MessageType","","Enumerates different types of SSDP messages.",null,null],[13,"Notify","","A notify message.",20,null],[13,"Search","","A search message.",20,null],[13,"Response","","A response to a search message.",20,null],[11,"clone","","",21,null],[11,"fmt","","",21,null],[11,"new","","Construct a new NotifyMessage.",21,{"inputs":[],"output":{"name":"self"}}],[11,"multicast","","Send this notify message to the standard multicast address:port.",21,null],[11,"multicast_with_port","","Send this notify message to the standard multicast address but a custom port.",21,null],[11,"default","","",21,{"inputs":[],"output":{"name":"self"}}],[11,"get","","",21,null],[11,"get_raw","","",21,null],[11,"set","","",21,null],[11,"set_raw","","",21,null],[11,"listen","","Listen for notify messages on all local network interfaces.",22,{"inputs":[],"output":{"name":"ssdpresult"}}],[11,"listen_on_port","","Listen for notify messages on a custom port on all local network interfaces.",22,{"inputs":[{"name":"u16"}],"output":{"name":"ssdpresult"}}],[11,"clone","","",23,null],[11,"fmt","","",23,null],[11,"new","","Construct a new SearchRequest.",23,{"inputs":[],"output":{"name":"searchrequest"}}],[11,"unicast","","Send this search request to a single host.",23,null],[11,"multicast","","Send this search request to the standard multicast address:port.",23,null],[11,"multicast_with_port","","Send this search request to the standard multicast address but a custom port",23,null],[11,"default","","",23,{"inputs":[],"output":{"name":"self"}}],[11,"get","","",23,null],[11,"get_raw","","",23,null],[11,"set","","",23,null],[11,"set_raw","","",23,null],[11,"clone","","",24,null],[11,"fmt","","",24,null],[11,"new","","Construct a new SearchResponse.",24,{"inputs":[],"output":{"name":"searchresponse"}}],[11,"unicast","","Send this search response to a single host.",24,null],[11,"default","","",24,{"inputs":[],"output":{"name":"self"}}],[11,"listen","","Listen for notify messages on all local network interfaces.",25,{"inputs":[],"output":{"name":"ssdpresult"}}],[11,"listen_on_port","","Listen for notify messages on a custom port on all local network interfaces.",25,{"inputs":[{"name":"u16"}],"output":{"name":"ssdpresult"}}],[11,"get","","",24,null],[11,"get_raw","","",24,null],[11,"set","","",24,null],[11,"set_raw","","",24,null],[17,"UPNP_MULTICAST_PORT","","",null,null],[11,"fmt","","",20,null],[11,"eq","","",20,null],[11,"hash","","",20,null],[11,"clone","","",20,null],[6,"SSDPResult","ssdp","Result that can return a T or an `SSDPError`.",null,null],[11,"fmt","ssdp::header","",6,null],[11,"clone","","",6,null],[11,"eq","","",6,null],[11,"ne","","",6,null],[11,"deref","","",6,null],[11,"deref_mut","","",6,null],[11,"header_name","","",6,{"inputs":[],"output":{"name":"str"}}],[11,"parse_header","","",6,null],[11,"fmt_header","","",6,null],[11,"fmt","","",7,null],[11,"clone","","",7,null],[11,"eq","","",7,null],[11,"ne","","",7,null],[11,"fmt","","",7,null],[11,"from_str","","",7,{"inputs":[{"name":"str"}],"output":{"name":"result"}}],[11,"eq","","",4,null],[11,"ne","","",4,null],[11,"fmt","","",4,null],[11,"clone","","",4,null],[11,"deref","","",4,null],[11,"deref_mut","","",4,null],[11,"header_name","","",4,{"inputs":[],"output":{"name":"str"}}],[11,"parse_header","","",4,null],[11,"fmt_header","","",4,null],[11,"fmt","","",4,null],[11,"eq","","",5,null],[11,"ne","","",5,null],[11,"fmt","","",5,null],[11,"clone","","",5,null],[11,"deref","","",5,null],[11,"deref_mut","","",5,null],[11,"header_name","","",5,{"inputs":[],"output":{"name":"str"}}],[11,"parse_header","","",5,null],[11,"fmt_header","","",5,null],[11,"fmt","","",5,null]],"paths":[[4,"SSDPError"],[4,"FieldMap"],[3,"SSDPIter"],[3,"SSDPReceiver"],[3,"Location"],[3,"Server"],[3,"CacheControl"],[4,"CacheDirective"],[3,"BootID"],[3,"ConfigID"],[3,"MX"],[3,"NT"],[3,"SearchPort"],[3,"SecureLocation"],[3,"USN"],[4,"NTS"],[4,"ST"],[3,"Man"],[8,"HeaderRef"],[8,"HeaderMut"],[4,"MessageType"],[3,"NotifyMessage"],[3,"NotifyListener"],[3,"SearchRequest"],[3,"SearchResponse"],[3,"SearchListener"]]}; initSearch(searchIndex);