1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
#[cfg(feature = "with-tokio-tun")]
use ::tokio_tun::Tun;
#[cfg(feature = "with-null-tun")]
mod null_tun;
#[cfg(feature = "with-null-tun")]
use null_tun::NullTun as Tun;
mod error;
pub use error::TunDevInitError;
mod context;
pub use context::TunDevContext;
mod create;
mod tun_mut;
mod fmt_debug;
pub struct TunDev {
tun: Tun,
}