MCPcopy Create free account
hub / github.com/aws/clock-bound / FdGuard

Class FdGuard

clock-bound/src/shm/reader.rs:22–22  ·  view source on GitHub ↗

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.

Source from the content-addressed store, hash-verified

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

Callers 1

newMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected