(&mut self, code: CloseCode, reason: &str)
| 100 | } |
| 101 | |
| 102 | fn on_close(&mut self, code: CloseCode, reason: &str) { |
| 103 | println!( |
| 104 | "WebSocket closing for ({:?}) {}", |
| 105 | code, reason |
| 106 | ); |
| 107 | |
| 108 | if let Some(timeout) = self.ping_timeout.take() { |
| 109 | self.out.cancel(timeout).unwrap() |
| 110 | } |
| 111 | } |
| 112 | } |
| 113 | |
| 114 | fn main() { |
nothing calls this directly
no outgoing calls
no test coverage detected