diff --git a/src/meta_plugin.rs b/src/meta_plugin.rs index d8cca59..626a6da 100644 --- a/src/meta_plugin.rs +++ b/src/meta_plugin.rs @@ -41,6 +41,10 @@ pub trait MetaPlugin { true } + fn is_internal(&self) -> bool { + false + } + fn create(&self) -> Result>; fn finalize(&mut self) -> io::Result; diff --git a/src/meta_plugin/program.rs b/src/meta_plugin/program.rs index 5ef27c1..19c1cc1 100644 --- a/src/meta_plugin/program.rs +++ b/src/meta_plugin/program.rs @@ -40,6 +40,10 @@ impl MetaPlugin for MetaPluginProgram { fn is_supported(&self) -> bool { self.supported } + + fn is_internal(&self) -> bool { + false + } fn create(&self) -> Result> { debug!("META: Writing using {:?}", *self); diff --git a/src/meta_plugin/system.rs b/src/meta_plugin/system.rs index 2a814d1..447e25e 100644 --- a/src/meta_plugin/system.rs +++ b/src/meta_plugin/system.rs @@ -248,6 +248,10 @@ impl BinaryMetaPlugin { } impl MetaPlugin for BinaryMetaPlugin { + fn is_internal(&self) -> bool { + true + } + fn create(&self) -> Result> { Ok(Box::new(io::sink())) } @@ -280,6 +284,10 @@ impl CwdMetaPlugin { } impl MetaPlugin for CwdMetaPlugin { + fn is_internal(&self) -> bool { + true + } + fn create(&self) -> Result> { Ok(Box::new(io::sink())) } @@ -314,6 +322,10 @@ impl UidMetaPlugin { } impl MetaPlugin for UidMetaPlugin { + fn is_internal(&self) -> bool { + true + } + fn create(&self) -> Result> { Ok(Box::new(io::sink())) } @@ -345,6 +357,10 @@ impl UserMetaPlugin { } impl MetaPlugin for UserMetaPlugin { + fn is_internal(&self) -> bool { + true + } + fn create(&self) -> Result> { Ok(Box::new(io::sink())) } @@ -379,6 +395,10 @@ impl GidMetaPlugin { } impl MetaPlugin for GidMetaPlugin { + fn is_internal(&self) -> bool { + true + } + fn create(&self) -> Result> { Ok(Box::new(io::sink())) } @@ -410,6 +430,10 @@ impl GroupMetaPlugin { } impl MetaPlugin for GroupMetaPlugin { + fn is_internal(&self) -> bool { + true + } + fn create(&self) -> Result> { Ok(Box::new(io::sink())) } @@ -444,6 +468,10 @@ impl ShellMetaPlugin { } impl MetaPlugin for ShellMetaPlugin { + fn is_internal(&self) -> bool { + true + } + fn create(&self) -> Result> { Ok(Box::new(io::sink())) } @@ -478,6 +506,10 @@ impl ShellPidMetaPlugin { } impl MetaPlugin for ShellPidMetaPlugin { + fn is_internal(&self) -> bool { + true + } + fn create(&self) -> Result> { Ok(Box::new(io::sink())) } @@ -512,6 +544,10 @@ impl KeepPidMetaPlugin { } impl MetaPlugin for KeepPidMetaPlugin { + fn is_internal(&self) -> bool { + true + } + fn create(&self) -> Result> { Ok(Box::new(io::sink())) } @@ -543,6 +579,10 @@ impl HostnameMetaPlugin { } impl MetaPlugin for HostnameMetaPlugin { + fn is_internal(&self) -> bool { + true + } + fn create(&self) -> Result> { Ok(Box::new(io::sink())) } @@ -577,6 +617,10 @@ impl FullHostnameMetaPlugin { } impl MetaPlugin for FullHostnameMetaPlugin { + fn is_internal(&self) -> bool { + true + } + fn create(&self) -> Result> { Ok(Box::new(io::sink())) }