(&mut self, method: HttpMethod, cx: &mut Context<Self>)
| 45 | self.close_epoch = self.close_epoch.wrapping_add(1); |
| 46 | self.is_open = true; |
| 47 | self.closing_at = None; |
| 48 | self.close_time = None; |
| 49 | cx.notify(); |
| 50 | } |
| 51 | |
| 52 | pub fn close(&mut self, cx: &mut Context<Self>) { |
| 53 | self.begin_close(cx); |
| 54 | } |
| 55 |