pub struct LoggerFeatures;Expand description
Feature flags that logger plugins can advertise to osquery.
These flags tell osquery which additional log types the plugin supports.
When osquery sends a {"action": "features"} request, the plugin returns
a bitmask of these values in the response status code.
§Example
use osquery_rust_ng::plugin::LoggerFeatures;
// Support both status logs and event forwarding
let features = LoggerFeatures::LOG_STATUS | LoggerFeatures::LOG_EVENT;
assert_eq!(features, 3);Implementations§
Source§impl LoggerFeatures
impl LoggerFeatures
Sourcepub const LOG_STATUS: i32 = 1
pub const LOG_STATUS: i32 = 1
Plugin supports receiving osquery status logs (INFO/WARNING/ERROR).
When enabled, osquery forwards its internal Glog status messages
to the logger plugin via log_status().
Auto Trait Implementations§
impl Freeze for LoggerFeatures
impl RefUnwindSafe for LoggerFeatures
impl Send for LoggerFeatures
impl Sync for LoggerFeatures
impl Unpin for LoggerFeatures
impl UnsafeUnpin for LoggerFeatures
impl UnwindSafe for LoggerFeatures
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more