Closes the file underlying this stream. ``close_fd`` is called by `BaseIOStream` and should not be called elsewhere; other users should call `close` instead.
(self)
| 287 | raise NotImplementedError() |
| 288 | |
| 289 | def close_fd(self) -> None: |
| 290 | """Closes the file underlying this stream. |
| 291 | |
| 292 | ``close_fd`` is called by `BaseIOStream` and should not be called |
| 293 | elsewhere; other users should call `close` instead. |
| 294 | """ |
| 295 | raise NotImplementedError() |
| 296 | |
| 297 | def write_to_fd(self, data: memoryview) -> int: |
| 298 | """Attempts to write ``data`` to the underlying file. |