mirror of
https://github.com/EasyTier/EasyTier.git
synced 2026-09-02 09:09:17 +00:00
system: rename SystemConfig to SystemConfigurator, add Clone to SystemConfigurator
This commit is contained in:
@@ -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<()>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user