Function tun_rs::platform::linux::create_with_fd

source ·
pub unsafe fn create_with_fd(fd: RawFd) -> Result<Device>
Expand description

§Safety

The fd passed in must be an owned file descriptor; in particular, it must be open.