var searchIndex = {}; searchIndex["pcap"] = {"doc":"","items":[[3,"Devices","pcap","An iterator over devices that pcap is aware about on the system.",null,null],[3,"Device","","A network device as returned from `Devices::list_all()`.",null,null],[12,"name","","",0,null],[12,"desc","","",0,null],[3,"Linktype","","This is a datalink link type returned from pcap.",null,null],[3,"CaptureBuilder","","This is a builder for a `Capture` handle. It's useful when you want to specify certain\nparameters, like promiscuous mode, or buffer length, before opening.",null,null],[3,"Capture","","This represents an open capture handle attached to a device or file.",null,null],[4,"Error","","An error received from pcap",null,null],[13,"MalformedError","","",1,null],[13,"PcapError","","",1,null],[11,"fmt","","",1,null],[11,"fmt","","",1,null],[11,"description","","",1,null],[11,"cause","","",1,null],[11,"from","","",1,{"inputs":[{"name":"utf8error"}],"output":{"name":"error"}}],[11,"list_all","","Construct a new `Devices` iterator by internally using `pcap_findalldevs()`",2,{"inputs":[],"output":{"name":"result"}}],[11,"next","","",2,null],[11,"drop","","",2,null],[11,"fmt","","",0,null],[11,"lookup","","Returns the default Device suitable for captures according to pcap_lookupdev,\nor an error from pcap.",0,{"inputs":[],"output":{"name":"result"}}],[11,"as_ref","","",0,null],[11,"fmt","","",3,null],[11,"get_name","","Gets the name of the link type, such as EN10MB",3,null],[11,"get_description","","Gets the description of a link type.",3,null],[11,"new","","Creates a `CaptureBuilder` with sensible defaults.",4,{"inputs":[],"output":{"name":"capturebuilder"}}],[11,"open","","Open a `Capture` with this `CaptureBuilder` with the given device. You can\nprovide a `Device` or an &str name of the device/source you would like to open.",4,null],[11,"timeout","","Set the read timeout for the Capture. By default, this is 0, so it will block\nindefinitely.",4,null],[11,"promisc","","Set promiscuous mode on or off. By default, this is off.",4,null],[11,"rfmon","","Set rfmon mode on or off. The default is maintained by pcap.",4,null],[11,"buffer_size","","Set the buffer size for incoming packet data.",4,null],[11,"snaplen","","Set the snaplen size (the maximum length of a packet captured into the buffer).\nUseful if you only want certain headers, but not the entire packet.",4,null],[11,"from_device","","Creates a capture handle from the specified device, or an error from pcap.",5,{"inputs":[{"name":"d"}],"output":{"name":"result"}}],[11,"from_file","","Creates a capture handle from the specified file, or an error from pcap.",5,{"inputs":[{"name":"p"}],"output":{"name":"result"}}],[11,"list_datalinks","","List the datalink types that this captured device supports.",5,null],[11,"set_datalink","","Set the datalink type for the current capture handle.",5,null],[11,"get_datalink","","Get the current datalink type for this capture handle.",5,null],[11,"next","","Blocks until a packet is returned from the capture handle or an error occurs.",5,null],[11,"filter","","Adds a filter to the capture using the given BPF program string. Internally\nthis is compiled using `pcap_compile()`.",5,null],[11,"drop","","",5,null]],"paths":[[3,"Device"],[4,"Error"],[3,"Devices"],[3,"Linktype"],[3,"CaptureBuilder"],[3,"Capture"]]}; initSearch(searchIndex);