pub enum TextSearchError {
Memory(MemoryError),
Cancelled(QueryCancelled),
Parameters(ScoringError),
Storage {
action: &'static str,
source: StorageBackendError,
},
InvalidIndex(String),
}Expand description
Preserve parameter errors separately from backend and index-integrity failures.
Variants§
Memory(MemoryError)
Cancelled(QueryCancelled)
Parameters(ScoringError)
Storage
InvalidIndex(String)
Trait Implementations§
Source§impl Debug for TextSearchError
impl Debug for TextSearchError
Source§impl Display for TextSearchError
impl Display for TextSearchError
Source§impl Error for TextSearchError
impl Error for TextSearchError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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<MemoryError> for TextSearchError
impl From<MemoryError> for TextSearchError
Source§fn from(source: MemoryError) -> Self
fn from(source: MemoryError) -> Self
Converts to this type from the input type.
Source§impl From<QueryCancelled> for TextSearchError
impl From<QueryCancelled> for TextSearchError
Source§fn from(source: QueryCancelled) -> Self
fn from(source: QueryCancelled) -> Self
Converts to this type from the input type.
Source§impl From<ScoringError> for TextSearchError
impl From<ScoringError> for TextSearchError
Source§fn from(source: ScoringError) -> Self
fn from(source: ScoringError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for TextSearchError
impl !UnwindSafe for TextSearchError
impl Freeze for TextSearchError
impl Send for TextSearchError
impl Sync for TextSearchError
impl Unpin for TextSearchError
impl UnsafeUnpin for TextSearchError
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