Struct usiem_syslog::input::SyslogInput
source · [−]pub struct SyslogInput { /* private fields */ }
Implementations
sourceimpl SyslogInput
impl SyslogInput
pub fn new(host: Cow<'static, str>) -> SyslogInput
Trait Implementations
sourceimpl Clone for SyslogInput
impl Clone for SyslogInput
sourcefn clone(&self) -> SyslogInput
fn clone(&self) -> SyslogInput
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 SyslogInput
impl SiemComponent for SyslogInput
fn name(&self) -> &str
sourcefn 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 of this component. It’s the kernel who sets the channel
sourcefn local_channel(&self) -> Sender<SiemMessage>
fn local_channel(&self) -> Sender<SiemMessage>
Get the channel to this component
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 capabilities(&self) -> SiemComponentCapabilities
fn capabilities(&self) -> SiemComponentCapabilities
Capabilities and actions that can be performed by this component
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.
fn set_id(&mut self, id: u64)
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
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.
fn id(&self) -> u64
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
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