pub enum DetectError {
MissingVersionMetadata,
MissingLanguageMetadata,
MissingProductName,
WrongProduct {
expected: &'static str,
actual: String,
},
UnsupportedLanguage(u16),
UnsupportedVersion(String),
}Variants§
MissingVersionMetadata
MissingLanguageMetadata
MissingProductName
WrongProduct
UnsupportedLanguage(u16)
UnsupportedVersion(String)
Trait Implementations§
Source§impl Debug for DetectError
impl Debug for DetectError
Source§impl Display for DetectError
impl Display for DetectError
Source§impl Error for DetectError
impl Error for DetectError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for DetectError
impl RefUnwindSafe for DetectError
impl Send for DetectError
impl Sync for DetectError
impl Unpin for DetectError
impl UnsafeUnpin for DetectError
impl UnwindSafe for DetectError
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