pub trait OsqueryPlugin {
// Required methods
fn name(&self) -> String;
fn registry(&self) -> Registry;
fn routes(&self) -> Vec<BTreeMap<String, String>>;
fn ping(&self) -> ExtensionStatus;
fn call(&self, req: BTreeMap<String, String>) -> ExtensionResponse;
fn shutdown(&self);
}Required Methods§
fn name(&self) -> String
fn registry(&self) -> Registry
fn routes(&self) -> Vec<BTreeMap<String, String>>
fn ping(&self) -> ExtensionStatus
fn call(&self, req: BTreeMap<String, String>) -> ExtensionResponse
fn shutdown(&self)
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".