]> git.proxmox.com Git - proxmox-backup.git/commitdiff
proxmox-rtest-server: make Reloader and Reloadable private
authorDietmar Maurer <dietmar@proxmox.com>
Thu, 30 Sep 2021 05:37:16 +0000 (07:37 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 30 Sep 2021 05:44:19 +0000 (07:44 +0200)
proxmox-rest-server/src/daemon.rs

index f22e4cf1a087e5787dc8a8e2a518d3394b15b90b..0914084580fb90d84a0d104b7f29fb78505d37a5 100644 (file)
@@ -27,15 +27,15 @@ type BoxedStoreFunc = Box<dyn FnMut() -> Result<String, Error> + UnwindSafe + Se
 
 /// Helper trait to "store" something in the environment to be re-used after re-executing the
 /// service on a reload.
-pub trait Reloadable: Sized {
+trait Reloadable: Sized {
     fn restore(var: &str) -> Result<Self, Error>;
     fn get_store_func(&self) -> Result<BoxedStoreFunc, Error>;
 }
 
-/// Manages things to be stored and reloaded upon reexec.
-/// Anything which should be restorable should be instantiated via this struct's `restore` method,
+// Manages things to be stored and reloaded upon reexec.
+// Anything which should be restorable should be instantiated via this struct's `restore` method,
 #[derive(Default)]
-pub struct Reloader {
+struct Reloader {
     pre_exec: Vec<PreExecEntry>,
     self_exe: PathBuf,
 }