Add Read and Write for Async TunInterface
Those features are implemented using AsyncFD. While write doesn't require a mutable reference to self, read does. Make Async Tun a feature remove async tun from workspace rename write/read to send/recv
This commit is contained in:
parent
d3882bd008
commit
beae8c0f79
12 changed files with 135 additions and 64 deletions
|
|
@ -8,5 +8,9 @@ pub(crate) mod imp;
|
|||
|
||||
mod options;
|
||||
|
||||
#[cfg(any(target_os = "linux", target_vendor = "apple"))]
|
||||
#[cfg(feature = "tokio")]
|
||||
pub mod tokio;
|
||||
|
||||
pub use imp::{TunInterface, TunQueue};
|
||||
pub use options::TunOptions;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue