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,"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.",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,"as_ref","","",0,null],[11,"new","","Creates a `CaptureBuilder` with sensible defaults.",3,{"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.",3,null],[11,"timeout","","Set the read timeout for the Capture. By default, this is 0, so it will block\nindefinitely.",3,null],[11,"promisc","","Set promiscuous mode on or off. By default, this is off.",3,null],[11,"rfmon","","Set rfmon mode on or off. The default is maintained by pcap.",3,null],[11,"buffer_size","","Set the buffer size for incoming packet data.",3,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.",3,null],[11,"new","","Creates a capture handle from the specified device, or an error from pcap.",4,{"inputs":[{"name":"d"}],"output":{"name":"result"}}],[11,"next","","Blocks until a packet is returned from the capture handle or an error occurs.",4,null],[11,"filter","","Adds a filter to the capture using the given BPF program string. Internally\nthis is compiled using `pcap_compile()`.",4,null],[11,"drop","","",4,null]],"paths":[[3,"Device"],[4,"Error"],[3,"Devices"],[3,"CaptureBuilder"],[3,"Capture"]]}; initSearch(searchIndex);