pub enum QueryError {
Timeout {
partial: bool,
},
Cancelled {
partial: bool,
},
ReadCancelled {
partial: bool,
},
Store(StoreError),
Scan(ScanError),
Graph(GraphSearchError),
}Expand description
Typed failure from a store-admitted query.
Variants§
Timeout
The deadline expired. Partial results are never returned.
Cancelled
The caller cancelled the token. Partial results are never returned.
ReadCancelled
Store close cancelled an already admitted query.
Store(StoreError)
Store admission or lifecycle failed.
Scan(ScanError)
Scan validation or scoring failed.
Graph(GraphSearchError)
Graph validation or traversal failed.
Trait Implementations§
Source§impl Debug for QueryError
impl Debug for QueryError
Source§impl Display for QueryError
impl Display for QueryError
Source§impl Error for QueryError
impl Error for QueryError
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<QueryError> for FusionError
impl From<QueryError> for FusionError
Source§fn from(error: QueryError) -> Self
fn from(error: QueryError) -> Self
Converts to this type from the input type.
Source§impl From<QueryError> for StoreLexicalError
impl From<QueryError> for StoreLexicalError
Source§fn from(error: QueryError) -> Self
fn from(error: QueryError) -> Self
Converts to this type from the input type.
Source§impl<E> From<QueryError> for HybridPreparationError<E>
impl<E> From<QueryError> for HybridPreparationError<E>
Source§fn from(error: QueryError) -> Self
fn from(error: QueryError) -> Self
Converts to this type from the input type.
Source§impl From<QueryError> for FilteredSearchError
impl From<QueryError> for FilteredSearchError
Source§fn from(error: QueryError) -> Self
fn from(error: QueryError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for QueryError
impl !UnwindSafe for QueryError
impl Freeze for QueryError
impl Send for QueryError
impl Sync for QueryError
impl Unpin for QueryError
impl UnsafeUnpin for QueryError
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