var searchIndex = {}; searchIndex["ws"] = {"doc":"","items":[[3,"Sender","ws","",null,null],[3,"Handshake","","",null,null],[12,"request","","",0,null],[12,"response","","",0,null],[3,"WebSocket","","",null,null],[4,"ErrorKind","","",null,null],[13,"Internal","","",1,null],[13,"Capacity","","",1,null],[13,"Protocol","","",1,null],[13,"Encoding","","",1,null],[13,"Io","","",1,null],[13,"Parse","","",1,null],[13,"Queue","","",1,null],[13,"Custom","","",1,null],[4,"Message","","",null,null],[13,"Text","","",2,null],[13,"Binary","","",2,null],[4,"CloseCode","","",null,null],[13,"Normal","","",3,null],[13,"Away","","",3,null],[13,"Protocol","","",3,null],[13,"Unsupported","","",3,null],[13,"Status","","",3,null],[13,"Abnormal","","",3,null],[13,"Invalid","","",3,null],[13,"Policy","","",3,null],[13,"Size","","",3,null],[13,"Extension","","",3,null],[13,"Error","","",3,null],[13,"Restart","","",3,null],[13,"Again","","",3,null],[13,"Tls","","",3,null],[13,"Empty","","",3,null],[13,"Other","","",3,null],[5,"listen","","",null,{"inputs":[{"name":"a"},{"name":"f"}],"output":{"name":"result"}}],[5,"connect","","",null,{"inputs":[{"name":"url"},{"name":"f"}],"output":{"name":"result"}}],[11,"fmt","","",1,null],[11,"clone","","",2,null],[11,"eq","","",2,null],[11,"ne","","",2,null],[11,"fmt","","",2,null],[11,"text","","",2,{"inputs":[{"name":"s"}],"output":{"name":"message"}}],[11,"binary","","",2,{"inputs":[{"name":"b"}],"output":{"name":"message"}}],[11,"len","","",2,null],[11,"opcode","","",2,null],[11,"into_data","","",2,null],[11,"into_text","","",2,null],[11,"as_text","","",2,null],[11,"from","","",2,{"inputs":[{"name":"string"}],"output":{"name":"message"}}],[11,"from","","",2,{"inputs":[{"name":"str"}],"output":{"name":"message"}}],[11,"from","","",2,null],[11,"fmt","","",2,null],[11,"fmt","","",0,null],[11,"new","","",0,{"inputs":[{"name":"request"},{"name":"response"}],"output":{"name":"handshake"}}],[11,"from_url","","",0,{"inputs":[{"name":"url"}],"output":{"name":"result"}}],[11,"default","","",0,{"inputs":[],"output":{"name":"handshake"}}],[11,"clone","","",3,null],[11,"eq","","",3,null],[11,"ne","","",3,null],[11,"fmt","","",3,null],[11,"into","","",3,null],[11,"from","","",3,{"inputs":[{"name":"u16"}],"output":{"name":"closecode"}}],[11,"clone","","",4,null],[11,"fmt","","",4,null],[11,"new","","",4,{"inputs":[{"name":"token"},{"name":"sender"}],"output":{"name":"sender"}}],[11,"token","","",4,null],[11,"send","","",4,null],[11,"broadcast","","",4,null],[11,"close","","",4,null],[11,"ping","","",4,null],[11,"pong","","",4,null],[11,"connect","","",4,null],[11,"shutdown","","",4,null],[8,"Factory","","",null,null],[16,"Handler","","",5,null],[10,"connection_made","","indicates a tcp connection made, so now we need to build the websocket connection handler",5,null],[11,"settings","","",5,null],[11,"on_shutdown","","",5,null],[8,"Handler","","all of these methods are called when receiving data from another endpoint not when data is sent\nfrom this endpoint",null,null],[11,"settings","","",6,null],[11,"on_shutdown","","",6,null],[11,"on_open","","",6,null],[11,"on_message","","",6,null],[11,"on_close","","",6,null],[11,"on_error","","",6,null],[11,"on_request","","return an Error to reject the request",6,null],[11,"on_response","","return an Error to reject the handshake response",6,null],[11,"on_ping_frame","","return Some(ping) to allow a pong to be sent for you\nreturn None to takeover processing the ping, you will need to send a pong yourself",6,null],[11,"on_pong_frame","","return Some(pong) to pass the pong back, which will mean that default validation may run\nreturn None to takeover processing the pong yourself",6,null],[11,"on_close_frame","","return Some(frame) to pass the close frame back, which will send a closing response frame and\ntrigger on_close. This method is only called when the connection is still open, if the\nconnection is already closing (because you sent a close frame or an error occured on your\nside), this method will not be called\nreturn None to takeover processing the close yourself",6,null],[11,"on_binary_frame","","This method is only called when the message is not fragmented\nreturn Some(frame) to pass the frame back and continue processing it into a message\nreturn None to takeover processing the frame yourself",6,null],[11,"on_text_frame","","This method is only called when the message is not fragmented\nreturn Ok(frame) to pass the frame back and continue processing it into a message\nreturn Ok(None) to takeover processing the frame yourself",6,null],[11,"on_fragmented_frame","","This method is only called when the message is fragmented, and it should be called with\neach fragment in order\nreturn Ok(frame) to pass the frame back and continue processing it into a message\nreturn Ok(None) to takeover processing the frame yourself, if you do this, you must do it\nfor all fragments of the message, otherwise the message will be incomplete when sent to the\nmessage handler",6,null],[11,"new","","",7,{"inputs":[{"name":"f"}],"output":{"name":"result"}}],[11,"with_capacity","","",7,{"inputs":[{"name":"f"},{"name":"usize"}],"output":{"name":"result"}}],[11,"listen","","",7,null],[11,"connect","","",7,null],[11,"run","","",7,null],[11,"settings","","",5,null],[11,"on_shutdown","","",5,null],[11,"settings","","",6,null],[11,"on_shutdown","","",6,null],[11,"on_open","","",6,null],[11,"on_message","","",6,null],[11,"on_close","","",6,null],[11,"on_error","","",6,null],[11,"on_request","","return an Error to reject the request",6,null],[11,"on_response","","return an Error to reject the handshake response",6,null],[11,"on_ping_frame","","return Some(ping) to allow a pong to be sent for you\nreturn None to takeover processing the ping, you will need to send a pong yourself",6,null],[11,"on_pong_frame","","return Some(pong) to pass the pong back, which will mean that default validation may run\nreturn None to takeover processing the pong yourself",6,null],[11,"on_close_frame","","return Some(frame) to pass the close frame back, which will send a closing response frame and\ntrigger on_close. This method is only called when the connection is still open, if the\nconnection is already closing (because you sent a close frame or an error occured on your\nside), this method will not be called\nreturn None to takeover processing the close yourself",6,null],[11,"on_binary_frame","","This method is only called when the message is not fragmented\nreturn Some(frame) to pass the frame back and continue processing it into a message\nreturn None to takeover processing the frame yourself",6,null],[11,"on_text_frame","","This method is only called when the message is not fragmented\nreturn Ok(frame) to pass the frame back and continue processing it into a message\nreturn Ok(None) to takeover processing the frame yourself",6,null],[11,"on_fragmented_frame","","This method is only called when the message is fragmented, and it should be called with\neach fragment in order\nreturn Ok(frame) to pass the frame back and continue processing it into a message\nreturn Ok(None) to takeover processing the frame yourself, if you do this, you must do it\nfor all fragments of the message, otherwise the message will be incomplete when sent to the\nmessage handler",6,null]],"paths":[[3,"Handshake"],[4,"ErrorKind"],[4,"Message"],[4,"CloseCode"],[3,"Sender"],[8,"Factory"],[8,"Handler"],[3,"WebSocket"]]}; initSearch(searchIndex);