We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4fd0a15 commit 6da4b3fCopy full SHA for 6da4b3f
1 file changed
src/lib.rs
@@ -147,6 +147,11 @@ impl<'a> Drop for LargeObject<'a> {
147
}
148
149
impl<'a> LargeObject<'a> {
150
+ /// Returns the file descriptor of the opened file.
151
+ pub fn fd(&self) -> i32 {
152
+ self.fd
153
+ }
154
+
155
/// Truncates the object to the specified size.
156
///
157
/// If `len` is larger than the size of the object, it will be padded with
0 commit comments