tunio 0.3.0

Crate for creating and managing TUN/TAP interfaces with async support. Works best with netconfig crate.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use core::marker::{Send, Sync};

pub struct HandleWrapper<T: Copy>(pub T);

impl<T: Copy> HandleWrapper<T> {
    pub(crate) fn clone(&self) -> Self {
        Self(self.0)
    }
}

unsafe impl<T: Copy> Send for HandleWrapper<T> {}

unsafe impl<T: Copy> Sync for HandleWrapper<T> {}