Struct usiem_syslog::tcp::SyslogInput
source · pub struct SyslogInput { /* private fields */ }
Implementations§
source§impl SyslogInput
impl SyslogInput
pub fn new(host: &str, name: &str) -> SyslogInput
Trait Implementations§
source§impl Clone for SyslogInput
impl Clone for SyslogInput
source§fn clone(&self) -> SyslogInput
fn clone(&self) -> SyslogInput
Returns a copy 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 SyslogInput
impl SiemComponent for SyslogInput
fn name(&self) -> &'static str
source§fn set_log_channel(
&mut self,
sender: Sender<SiemLog>,
receiver: Receiver<SiemLog>
)
fn set_log_channel( &mut self, sender: Sender<SiemLog>, receiver: Receiver<SiemLog> )
Sets the channel used to receive/send logs. It’s the kernel who sets the channel
source§fn local_channel(&self) -> Sender<SiemMessage>
fn local_channel(&self) -> Sender<SiemMessage>
Get the channel to this component
source§fn capabilities(&self) -> SiemComponentCapabilities
fn capabilities(&self) -> SiemComponentCapabilities
Capabilities and actions that can be performed by this component
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 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
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 configurations.
Auto Trait Implementations§
impl RefUnwindSafe for SyslogInput
impl Send for SyslogInput
impl Sync for SyslogInput
impl Unpin for SyslogInput
impl UnwindSafe for SyslogInput
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