pub enum ScopeLoadError {
EmptyScope,
TooManyDocuments,
DepthLimit,
DocumentLimit,
TraversalLimitsRequireLinks,
DocumentSelector(ScopeTextError),
NoResolvedDocuments {
reasons: Vec<String>,
},
}Expand description
Invalid loading scope or failure to acquire 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.
TraversalLimitsRequireLinks
Traversal limits were supplied while link following was disabled.
DocumentSelector(ScopeTextError)
A logical document selector violated its native bound.
NoResolvedDocuments
No initial document could be loaded.
Trait Implementations§
Source§impl Clone for ScopeLoadError
impl Clone for ScopeLoadError
Source§fn clone(&self) -> ScopeLoadError
fn clone(&self) -> ScopeLoadError
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 ScopeLoadError
impl Debug for ScopeLoadError
Source§impl Display for ScopeLoadError
impl Display for ScopeLoadError
impl Eq for ScopeLoadError
Source§impl Error for ScopeLoadError
impl Error for ScopeLoadError
1.30.0 · 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 ScopeLoadError
impl PartialEq for ScopeLoadError
impl StructuralPartialEq for ScopeLoadError
Auto Trait Implementations§
impl Freeze for ScopeLoadError
impl RefUnwindSafe for ScopeLoadError
impl Send for ScopeLoadError
impl Sync for ScopeLoadError
impl Unpin for ScopeLoadError
impl UnsafeUnpin for ScopeLoadError
impl UnwindSafe for ScopeLoadError
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