A guard tracking an open file descriptor. Creating the `FdGuard` opens the file with read-only permission. The file descriptor is closed when the guard is dropped.
| 20 | /// Creating the `FdGuard` opens the file with read-only permission. |
| 21 | /// The file descriptor is closed when the guard is dropped. |
| 22 | struct FdGuard(i32); |
| 23 | |
| 24 | impl FdGuard { |
| 25 | /// Create a new `FdGuard`. |