pub struct KernelMessager { /* private fields */ }Implementations§
Source§impl KernelMessager
impl KernelMessager
pub fn new(id: u64, name: String, channel: Sender<SiemMessage>) -> Self
pub fn set_level(&mut self, level: NotificationLevel)
pub fn send<T: Into<SiemMessage>>(&self, msg: T) -> SiemResult<()>
pub fn try_send<T: Into<SiemMessage>>(&self, msg: T) -> SiemResult<()>
pub fn send_timeout<T: Into<SiemMessage>>( &self, msg: T, timeout: Duration, ) -> SiemResult<()>
pub fn log(&self, log: String, level: NotificationLevel)
pub fn trace(&self, log: String)
pub fn debug(&self, log: String)
pub fn info(&self, log: String)
pub fn warn(&self, log: String)
pub fn error(&self, log: String)
Trait Implementations§
Source§impl Clone for KernelMessager
impl Clone for KernelMessager
Source§fn clone(&self) -> KernelMessager
fn clone(&self) -> KernelMessager
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 moreAuto Trait Implementations§
impl Freeze for KernelMessager
impl RefUnwindSafe for KernelMessager
impl Send for KernelMessager
impl Sync for KernelMessager
impl Unpin for KernelMessager
impl UnwindSafe for KernelMessager
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