pub enum ScopeQueryError {
EmptyScope,
TooManyDocuments,
DepthLimit,
DocumentLimit,
ContentLimit,
TraversalLimitsRequireLinks,
DocumentSelector(ScopeTextError),
EntrySelector(ScopeTextError),
Search(SearchError),
NoResolvedDocuments {
reasons: Vec<String>,
},
}Expand description
Invalid scope configuration or failure to resolve any initial document.
Variants§
EmptyScope
No initial document was supplied.
TooManyDocuments
The initial document count exceeded the native bound.
DepthLimit
Traversal depth exceeded the native bound.
DocumentLimit
The document budget was zero, too large, or smaller than the root set.
ContentLimit
The initial document set exceeded the aggregate semantic-content budget.
TraversalLimitsRequireLinks
Traversal limits were supplied while link following was disabled.
DocumentSelector(ScopeTextError)
A logical document selector violated its native bound.
EntrySelector(ScopeTextError)
A semantic-entry selector violated its native bound.
Search(SearchError)
Search configuration was invalid.
NoResolvedDocuments
No initial document could be loaded.
Trait Implementations§
Source§impl Clone for ScopeQueryError
impl Clone for ScopeQueryError
Source§fn clone(&self) -> ScopeQueryError
fn clone(&self) -> ScopeQueryError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ScopeQueryError
impl Debug for ScopeQueryError
Source§impl Display for ScopeQueryError
impl Display for ScopeQueryError
impl Eq for ScopeQueryError
Source§impl Error for ScopeQueryError
impl Error for ScopeQueryError
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 PartialEq for ScopeQueryError
impl PartialEq for ScopeQueryError
impl StructuralPartialEq for ScopeQueryError
Auto Trait Implementations§
impl Freeze for ScopeQueryError
impl RefUnwindSafe for ScopeQueryError
impl Send for ScopeQueryError
impl Sync for ScopeQueryError
impl Unpin for ScopeQueryError
impl UnsafeUnpin for ScopeQueryError
impl UnwindSafe for ScopeQueryError
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