pub struct BasicParserComponent { /* private fields */ }
Expand description
Implementations§
Source§impl BasicParserComponent
impl BasicParserComponent
pub fn new() -> BasicParserComponent
Sourcepub fn add_parser(&mut self, parser: Box<dyn LogParser>)
pub fn add_parser(&mut self, parser: Box<dyn LogParser>)
Adds a new parser in the component
Trait Implementations§
Source§impl Clone for BasicParserComponent
impl Clone for BasicParserComponent
Source§fn clone(&self) -> BasicParserComponent
fn clone(&self) -> BasicParserComponent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl SiemComponent for BasicParserComponent
impl SiemComponent for BasicParserComponent
Source§fn run(&mut self) -> Result<(), SiemError>
fn run(&mut self) -> Result<(), SiemError>
Execute the logic of this component in an infinite loop. Must be stopped using Commands sent using the channel.
Source§fn set_storage(&mut self, conn: Box<dyn SiemComponentStateStorage>)
fn set_storage(&mut self, conn: Box<dyn SiemComponentStateStorage>)
Allow to store information about this component like the state or conigurations.
Source§fn capabilities(&self) -> SiemComponentCapabilities
fn capabilities(&self) -> SiemComponentCapabilities
Capabilities and actions that can be performed on this component
fn name(&self) -> &'static str
Source§fn local_channel(&self) -> Sender<SiemMessage>
fn local_channel(&self) -> Sender<SiemMessage>
Get the channel to this component
Source§fn set_log_channel(
&mut self,
log_sender: Sender<SiemLog>,
receiver: Receiver<SiemLog>,
)
fn set_log_channel( &mut self, log_sender: Sender<SiemLog>, receiver: Receiver<SiemLog>, )
Sets the channel used to receive/send logs. It’s the kernel who sets the channel
Source§fn duplicate(&self) -> Box<dyn SiemComponent>
fn duplicate(&self) -> Box<dyn SiemComponent>
Allows the Kernel to duplicate this component
Source§fn set_datasets(&mut self, datasets: DatasetHolder)
fn set_datasets(&mut self, datasets: DatasetHolder)
Initialize the component with the datasets before executing run
Auto Trait Implementations§
impl Freeze for BasicParserComponent
impl !RefUnwindSafe for BasicParserComponent
impl Send for BasicParserComponent
impl !Sync for BasicParserComponent
impl Unpin for BasicParserComponent
impl !UnwindSafe for BasicParserComponent
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