(
&mut self,
frame: Frame,
)
| 7 | } |
| 8 | impl ws::Handler for Client { |
| 9 | fn on_frame( |
| 10 | &mut self, |
| 11 | frame: Frame, |
| 12 | ) -> Result<Option<Frame>> { |
| 13 | if frame.opcode() == OpCode::Ping { |
| 14 | println!( |
| 15 | "Received a ping, but we are not responding" |
| 16 | ); |
| 17 | } |
| 18 | |
| 19 | Ok(None) |
| 20 | } |
| 21 | } |
| 22 | |
| 23 | fn main() { |
nothing calls this directly
no outgoing calls
no test coverage detected