Implement RawFile::from_raw_fd()
This commit is contained in:
@@ -25,6 +25,10 @@ impl RawFile {
|
||||
pub fn into_raw_fd(self) -> usize {
|
||||
self.0
|
||||
}
|
||||
|
||||
pub fn from_raw_fd(fd: usize) -> Self {
|
||||
RawFile(fd)
|
||||
}
|
||||
}
|
||||
|
||||
impl Drop for RawFile {
|
||||
|
||||
Reference in New Issue
Block a user