Enum hyperscan::error::HyperscanError
source · pub enum HyperscanError {
Runtime(HyperscanRuntimeError),
Compile(HyperscanCompileError),
Scan(ScanError),
Compression(CompressionError),
}Expand description
Top-level wrapper for errors returned by this library.
Variants§
Runtime(HyperscanRuntimeError)
error from the hyperscan runtime: {0}
Compile(HyperscanCompileError)
Available on crate feature
compiler only.compile error: {0}
Scan(ScanError)
Available on crate feature
async only.error during scan: {0}
Compression(CompressionError)
error compressing stream: {0}
Trait Implementations§
source§impl Debug for HyperscanError
impl Debug for HyperscanError
source§impl Display for HyperscanError
impl Display for HyperscanError
source§impl Error for HyperscanError
impl Error for HyperscanError
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<CompressionError> for HyperscanError
impl From<CompressionError> for HyperscanError
source§fn from(source: CompressionError) -> Self
fn from(source: CompressionError) -> Self
Converts to this type from the input type.
source§impl From<HyperscanCompileError> for HyperscanError
impl From<HyperscanCompileError> for HyperscanError
source§fn from(source: HyperscanCompileError) -> Self
fn from(source: HyperscanCompileError) -> Self
Converts to this type from the input type.
source§impl From<HyperscanRuntimeError> for HyperscanError
impl From<HyperscanRuntimeError> for HyperscanError
source§fn from(source: HyperscanRuntimeError) -> Self
fn from(source: HyperscanRuntimeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for HyperscanError
impl Send for HyperscanError
impl Sync for HyperscanError
impl Unpin for HyperscanError
impl !UnwindSafe for HyperscanError
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