#[non_exhaustive]pub enum SiemError {
Io(String),
Serialization(String),
Parsing(LogParsingError),
Indexing(String),
Storage(StorageError),
Task(String),
Command(CommandExecutionError),
Configuration(String),
Messaging(MessagingError),
Other(String),
Component(ComponentError),
}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.
Io(String)
Io Error
Serialization(String)
Seriaization/Deserialization error
Parsing(LogParsingError)
Error parsing a log
Indexing(String)
Error indexing a log
Storage(StorageError)
Error accessing the storage system
Task(String)
A task execution failed
Command(CommandExecutionError)
A command executed failed
Configuration(String)
A component sufered an error during the startup process
Messaging(MessagingError)
Other(String)
Component(ComponentError)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SiemError
impl<'de> Deserialize<'de> for SiemError
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<CommandExecutionError> for SiemError
impl From<CommandExecutionError> for SiemError
Source§fn from(e: CommandExecutionError) -> Self
fn from(e: CommandExecutionError) -> Self
Converts to this type from the input type.
Source§impl From<ComponentError> for SiemError
impl From<ComponentError> for SiemError
Source§fn from(e: ComponentError) -> Self
fn from(e: ComponentError) -> Self
Converts to this type from the input type.
Source§impl From<MessagingError> for SiemError
impl From<MessagingError> for SiemError
Source§fn from(e: MessagingError) -> Self
fn from(e: MessagingError) -> Self
Converts to this type from the input type.
Source§impl<T> From<SendTimeoutError<T>> for SiemError
impl<T> From<SendTimeoutError<T>> for SiemError
Source§fn from(e: SendTimeoutError<T>) -> Self
fn from(e: SendTimeoutError<T>) -> Self
Converts to this type from the input type.
Source§impl From<StorageError> for SiemError
impl From<StorageError> for SiemError
Source§fn from(e: StorageError) -> Self
fn from(e: StorageError) -> Self
Converts to this type from the input type.
Source§impl<T> From<TrySendError<T>> for SiemError
impl<T> From<TrySendError<T>> for SiemError
Source§fn from(e: TrySendError<T>) -> Self
fn from(e: TrySendError<T>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SiemError
impl RefUnwindSafe for SiemError
impl Send for SiemError
impl Sync for SiemError
impl Unpin for SiemError
impl UnwindSafe for SiemError
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