#[non_exhaustive]pub enum SiemMessage {
Command(SiemCommandHeader, SiemCommandCall),
Response(SiemCommandHeader, SiemCommandResponse),
Log(SiemLog),
Notification(Notification),
Dataset(SiemDataset),
Alert(SiemAlert),
Task(SiemCommandHeader, SiemTask),
TaskResult(SiemCommandHeader, SiemTaskResult),
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Command(SiemCommandHeader, SiemCommandCall)
Execute a command in the component
Response(SiemCommandHeader, SiemCommandResponse)
Response to a function call, first element is the ID of the Response
Log(SiemLog)
Process a log
Notification(Notification)
Local logging system. First element is the ID of the component, to be able to route messages
Dataset(SiemDataset)
Dataset updated, this is the last state of it.
Alert(SiemAlert)
Alerting
Task(SiemCommandHeader, SiemTask)
TaskResult(SiemCommandHeader, SiemTaskResult)
Trait Implementations§
Source§impl Debug for SiemMessage
impl Debug for SiemMessage
Source§impl<'de> Deserialize<'de> for SiemMessage
impl<'de> Deserialize<'de> for SiemMessage
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<Notification> for SiemMessage
impl From<Notification> for SiemMessage
Source§fn from(c: Notification) -> Self
fn from(c: Notification) -> Self
Converts to this type from the input type.
Source§impl From<SiemAlert> for SiemMessage
impl From<SiemAlert> for SiemMessage
Source§impl From<SiemCommandCall> for SiemMessage
impl From<SiemCommandCall> for SiemMessage
Source§fn from(c: SiemCommandCall) -> Self
fn from(c: SiemCommandCall) -> Self
Converts to this type from the input type.
Source§impl From<SiemCommandResponse> for SiemMessage
impl From<SiemCommandResponse> for SiemMessage
Source§fn from(c: SiemCommandResponse) -> Self
fn from(c: SiemCommandResponse) -> Self
Converts to this type from the input type.
Source§impl From<SiemDataset> for SiemMessage
impl From<SiemDataset> for SiemMessage
Source§fn from(c: SiemDataset) -> Self
fn from(c: SiemDataset) -> Self
Converts to this type from the input type.
Source§impl From<SiemLog> for SiemMessage
impl From<SiemLog> for SiemMessage
Source§impl From<SiemTask> for SiemMessage
impl From<SiemTask> for SiemMessage
Source§impl From<SiemTaskResult> for SiemMessage
impl From<SiemTaskResult> for SiemMessage
Source§fn from(c: SiemTaskResult) -> Self
fn from(c: SiemTaskResult) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SiemMessage
impl RefUnwindSafe for SiemMessage
impl Send for SiemMessage
impl Sync for SiemMessage
impl Unpin for SiemMessage
impl UnwindSafe for SiemMessage
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