(&self)
| 2169 | |
| 2170 | #[pymethod] |
| 2171 | fn close(&self) -> io::Result<()> { |
| 2172 | let sock = self.sock.write().take(); |
| 2173 | if let Some(sock) = sock { |
| 2174 | close_inner(into_sock_fileno(sock))?; |
| 2175 | } |
| 2176 | Ok(()) |
| 2177 | } |
| 2178 | |
| 2179 | #[pymethod] |
| 2180 | #[inline] |
no test coverage detected