Struct usiem_basic_parser::BasicParserComponent
source · [−]pub struct BasicParserComponent { /* private fields */ }Implementations
sourceimpl BasicParserComponent
impl BasicParserComponent
pub fn new() -> BasicParserComponent
pub fn add_parser(&mut self, parser: Box<dyn LogParser>)
Trait Implementations
sourceimpl Clone for BasicParserComponent
impl Clone for BasicParserComponent
sourcefn clone(&self) -> BasicParserComponent
fn clone(&self) -> BasicParserComponent
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl SiemComponent for BasicParserComponent
impl SiemComponent for BasicParserComponent
sourcefn run(&mut self)
fn run(&mut self)
Execute the logic of this component in an infinite loop. Must be stopped using Commands sent using the channel.
sourcefn 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.
sourcefn capabilities(&self) -> SiemComponentCapabilities
fn capabilities(&self) -> SiemComponentCapabilities
Capabilities and actions that can be performed on this component
fn id(&self) -> u64
fn set_id(&mut self, id: u64)
fn name(&self) -> &str
sourcefn local_channel(&self) -> Sender<SiemMessage>
fn local_channel(&self) -> Sender<SiemMessage>
Get the channel to this component
sourcefn 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 of this component. It’s the kernel who sets the channel
sourcefn set_kernel_sender(&mut self, sender: Sender<SiemMessage>)
fn set_kernel_sender(&mut self, sender: Sender<SiemMessage>)
Sets the channel to communicate with the kernel.
sourcefn duplicate(&self) -> Box<dyn SiemComponent>
fn duplicate(&self) -> Box<dyn SiemComponent>
Allows the Kernel to duplicate this component
sourcefn set_datasets(&mut self, _datasets: Vec<SiemDataset>)
fn set_datasets(&mut self, _datasets: Vec<SiemDataset>)
Initialize the component with the datasets before executing run
Auto Trait Implementations
impl !RefUnwindSafe for BasicParserComponent
impl Send for BasicParserComponent
impl !Sync for BasicParserComponent
impl Unpin for BasicParserComponent
impl !UnwindSafe for BasicParserComponent
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more