You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
387 B
10 lines
387 B
//! Provides a wrapper over `RawFd` that does not close it on drop.
|
|
//! This can be useful for aliasing file descriptors.
|
|
use super::*;
|
|
|
|
/// Represents a `RawFd` but does not provide any ownership of it.
|
|
#[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
|
|
pub struct UnmanagedFD(RawFd);
|
|
|
|
//TODO: implement a full version of the temporary struct `UnmanagedFD` from `utf8encode`
|