system: rename SystemConfig to SystemConfigurator, add Clone to SystemConfigurator

This commit is contained in:
Luna Yao
2026-04-06 11:54:02 +02:00
parent 4ed9cbc4a1
commit 918c9b9174
4 changed files with 15 additions and 13 deletions
+2 -2
View File
@@ -14,7 +14,7 @@ pub struct OSConfig {
pub match_domains: Vec<String>,
}
pub trait SystemConfig: Send + Sync {
pub trait SystemConfigurator: Send + Sync + Clone {
fn set_dns(&self, cfg: &OSConfig) -> std::io::Result<()>;
fn close(&self) -> std::io::Result<()>;
fn clean(&self) -> std::io::Result<()>;
}