Add thread spawning FFI
This commit is contained in:
parent
a2cbd2ad77
commit
1b69b4a8e1
7 changed files with 98 additions and 29 deletions
|
|
@ -5,9 +5,6 @@ pub struct TunInterface {
|
|||
inner: AsyncFd<crate::TunInterface>,
|
||||
}
|
||||
|
||||
unsafe impl Send for TunInterface {
|
||||
}
|
||||
|
||||
impl TunInterface {
|
||||
pub fn new(tun: crate::TunInterface) -> io::Result<Self> {
|
||||
Ok(Self {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue