meh / rust-tun

TUN device creation and handling.
343 stars 136 forks source link

Allow shared Read and Write for Device #26

Closed zonyitoo closed 3 years ago

zonyitoo commented 3 years ago

Syscall read and write on tun's fd could be shared multithreaded. So it would be nice to have

impl<'a> Read for &'a Tun { ... }
impl<'a> Write for &'a Tun { ... }