pub enum LaurusError {
Show 17 variants
Io(Error),
Index(String),
Schema(String),
Analysis(String),
Query(String),
Storage(String),
Field(String),
BenchmarkFailed(String),
ThreadJoinError(String),
OperationCancelled(String),
InvalidOperation(String),
ResourceExhausted(String),
SerializationError(String),
NotImplemented(String),
Json(Error),
Other(String),
Anyhow(Error),
}Expand description
The main error type for Laurus operations.
This enum represents all possible errors that can occur in the Laurus library.
It uses the thiserror crate for automatic Error trait implementation and
provides convenient constructor methods for creating specific error types.
Variants§
Io(Error)
I/O errors (file operations, network, etc.)
Index(String)
Index-related errors
Schema(String)
Schema-related errors
Analysis(String)
Analysis-related errors (tokenization, filtering, etc.)
Query(String)
Query-related errors (parsing, invalid queries, etc.)
Storage(String)
Storage-related errors
Field(String)
Field-related errors
BenchmarkFailed(String)
Benchmark-related errors
ThreadJoinError(String)
Thread join errors
OperationCancelled(String)
Operation cancelled
InvalidOperation(String)
Invalid operation
ResourceExhausted(String)
Resource exhausted
SerializationError(String)
Serialization error
NotImplemented(String)
Not implemented
Json(Error)
JSON serialization/deserialization errors
Other(String)
Generic error for other cases
Anyhow(Error)
Generic anyhow error
Implementations§
Source§impl LaurusError
impl LaurusError
Sourcepub fn invalid_config<S: Into<String>>(msg: S) -> Self
pub fn invalid_config<S: Into<String>>(msg: S) -> Self
Sourcepub fn invalid_argument<S: Into<String>>(msg: S) -> Self
pub fn invalid_argument<S: Into<String>>(msg: S) -> Self
Trait Implementations§
Source§impl Debug for LaurusError
impl Debug for LaurusError
Source§impl Display for LaurusError
impl Display for LaurusError
Source§impl Error for LaurusError
impl Error for LaurusError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<Error> for LaurusError
impl From<Error> for LaurusError
Source§impl From<Error> for LaurusError
impl From<Error> for LaurusError
Source§impl From<Error> for LaurusError
impl From<Error> for LaurusError
Source§impl From<StorageError> for LaurusError
impl From<StorageError> for LaurusError
Source§fn from(err: StorageError) -> Self
fn from(err: StorageError) -> Self
Auto Trait Implementations§
impl Freeze for LaurusError
impl !RefUnwindSafe for LaurusError
impl Send for LaurusError
impl Sync for LaurusError
impl Unpin for LaurusError
impl UnsafeUnpin for LaurusError
impl !UnwindSafe for LaurusError
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
out indicating that a T is niched.