pub enum PhraseError {
Cancelled(QueryCancelled),
MemoryLimit {
required: usize,
limit: usize,
},
Allocation(TryReserveError),
Memory(MemoryError),
Storage(StorageBackendError),
Scoring(TextSearchError),
InvalidGraph(String),
}Variants§
Cancelled(QueryCancelled)
MemoryLimit
Allocation(TryReserveError)
Memory(MemoryError)
Storage(StorageBackendError)
Scoring(TextSearchError)
InvalidGraph(String)
Trait Implementations§
Source§impl Debug for PhraseError
impl Debug for PhraseError
Source§impl Display for PhraseError
impl Display for PhraseError
Source§impl Error for PhraseError
impl Error for PhraseError
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 PhraseError
impl From<MemoryError> for PhraseError
Source§fn from(error: MemoryError) -> Self
fn from(error: MemoryError) -> Self
Converts to this type from the input type.
Source§impl From<StorageBackendError> for PhraseError
impl From<StorageBackendError> for PhraseError
Source§fn from(error: StorageBackendError) -> Self
fn from(error: StorageBackendError) -> Self
Converts to this type from the input type.
Source§impl From<TextSearchError> for PhraseError
impl From<TextSearchError> for PhraseError
Source§fn from(error: TextSearchError) -> Self
fn from(error: TextSearchError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for PhraseError
impl !UnwindSafe for PhraseError
impl Freeze for PhraseError
impl Send for PhraseError
impl Sync for PhraseError
impl Unpin for PhraseError
impl UnsafeUnpin for PhraseError
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