structure refactoring

This commit is contained in:
2026-03-24 15:32:52 +07:00
parent 7603d2c92e
commit fc93665fb2
14 changed files with 401 additions and 332 deletions
-4
View File
@@ -7,10 +7,6 @@ pub struct Tun {
}
impl Tun {
pub fn build() -> Configuration {
Configuration::default()
}
pub fn new(config: &Configuration) -> io::Result<Self> {
match create_as_async(config) {
Ok(device) => Ok(Self { device }),