Trait usiem::components::SiemComponent[][src]

pub trait SiemComponent {
    fn local_channel(&self) -> Sender<SiemMessage>;
fn set_log_channel(
        &mut self,
        sender: Sender<SiemLog>,
        receiver: Receiver<SiemLog>
    );
fn set_kernel_sender(&mut self, sender: Sender<SiemMessage>);
fn run(&mut self);
fn set_storage(&mut self, conn: impl SiemComponentStateStorage);
fn capabilities(&self) -> SiemComponentCapabilities; fn name(&self) -> Cow<'static, str> { ... } }

Required methods

fn local_channel(&self) -> Sender<SiemMessage>[src]

Get the channel to this component

fn set_log_channel(
    &mut self,
    sender: Sender<SiemLog>,
    receiver: Receiver<SiemLog>
)
[src]

Sets the channel of this component. It's the kernel who sets the channel

fn set_kernel_sender(&mut self, sender: Sender<SiemMessage>)[src]

Sets the channel to communicate with the kernel.

fn run(&mut self)[src]

Execute the logic of this component in an infinite loop. Must be stopped using Commands sent using the channel.

fn set_storage(&mut self, conn: impl SiemComponentStateStorage)[src]

Allow to store information about this component like the state or conigurations.

fn capabilities(&self) -> SiemComponentCapabilities[src]

Capabilities and actions that can be performed by this component

Loading content...

Provided methods

fn name(&self) -> Cow<'static, str>[src]

Loading content...

Implementors

Loading content...