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
Available on crate feature v3 only.
impl From<DetectError> for OwnedReaderError
Available on crate feature
v3 only.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
Available on crate feature v2 only.
impl From<DetectError> for OwnedReaderError
Available on crate feature
v2 only.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
Available on crate feature v2 only.
impl From<DetectError> for StreamingReaderError
Available on crate feature
v2 only.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
Available on crate feature v3 only.
impl From<DetectError> for StreamingReaderError
Available on crate feature
v3 only.source§fn from(source: DetectError) -> Self
fn from(source: DetectError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DetectError
impl !RefUnwindSafe for DetectError
impl Send for DetectError
impl Sync for DetectError
impl Unpin 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