pub trait Plugin {
const NAME: &'static CStr;
const DESCRIPTION: &'static CStr;
// Required methods
fn new(config: &Config) -> Self;
fn flush(&mut self, tag: &str, data: &[u8]) -> Result<(), Error>;
fn exit(self) -> Result<(), Error>;
}Expand description
A trait for Fluent Bit output plugin
Required Associated Constants§
Sourceconst DESCRIPTION: &'static CStr
const DESCRIPTION: &'static CStr
The plugin description.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.