pub enum HsError {
Show 14 variants
Invalid,
NoMem,
ScanTerminated,
CompileError(Error),
DbVersionError,
DbPlatformError,
DbModeError,
BadAlign,
BadAlloc,
ScratchInUse,
ArchError,
InsufficientSpace,
UnknownError,
Code(hs_error_t),
}
Expand description
Hyperscan Error Codes
Variants
Invalid
A parameter passed to this function was invalid.
NoMem
A memory allocation failed.
ScanTerminated
The engine was terminated by callback.
CompileError(Error)
The pattern compiler failed with more detail.
DbVersionError
The given database was built for a different version of Hyperscan.
DbPlatformError
The given database was built for a different platform (i.e., CPU type).
DbModeError
The given database was built for a different mode of operation.
BadAlign
A parameter passed to this function was not correctly aligned.
BadAlloc
The memory allocator did not correctly return memory suitably aligned.
ScratchInUse
The scratch region was already in use.
ArchError
Unsupported CPU architecture.
InsufficientSpace
Provided buffer was too small.
UnknownError
Unexpected internal error.
Code(hs_error_t)
Unknown error code
Trait Implementations
sourceimpl Error for Error
impl Error for Error
1.30.0 · sourcefn 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 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl From<i32> for Error
impl From<i32> for Error
sourcefn from(err: hs_error_t) -> Self
fn from(err: hs_error_t) -> Self
Converts to this type from the input type.
impl Eq for Error
impl StructuralEq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more