Enum webc::DetectError
source · pub enum DetectError {
Io(Error),
InvalidMagic {
found: Magic,
expected: Magic,
},
}Expand description
An error returned by detect().
Variants§
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
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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()
source§impl From<DetectError> for ContainerError
impl From<DetectError> for ContainerError
source§fn from(source: DetectError) -> Self
fn from(source: DetectError) -> Self
Converts to this type from the input type.
source§impl From<DetectError> for OwnedReaderError
impl From<DetectError> for OwnedReaderError
source§fn from(source: DetectError) -> Self
fn from(source: DetectError) -> Self
Converts to this type from the input type.
source§impl From<DetectError> for StreamingReaderError
impl From<DetectError> for StreamingReaderError
source§fn from(source: DetectError) -> Self
fn from(source: DetectError) -> Self
Converts to this type from the input type.