pub enum FailureCause {
NetworkUnavailable,
ParseFailed,
Timeout,
EmptyContent,
UnsupportedPageShape,
ExtractionFailed,
RendererFailed,
ShelfUnavailable,
LowConfidence,
BlockedByPolicy,
AdapterMismatch,
Unknown,
}Expand description
Likely cause for a failed or low-confidence page.
Variants§
Network fetch or DNS/transport failed.
ParseFailed
Local parsing failed or produced an unusable structure.
Timeout
A timeout stopped a fetch or rendering attempt.
EmptyContent
No useful page content was available.
UnsupportedPageShape
Index did not understand the static page shape.
ExtractionFailed
Extraction or serialization failed.
RendererFailed
Renderer layout or terminal output failed.
Local shelf storage or search failed.
LowConfidence
A document exists but Index has low confidence in its completeness.
BlockedByPolicy
A security or origin policy rejected the operation.
AdapterMismatch
A site adapter declined or failed and generic fallback was used.
Unknown
The cause was not specific enough to classify.
Implementations§
Source§impl FailureCause
impl FailureCause
Sourcepub const fn explanation(self) -> &'static str
pub const fn explanation(self) -> &'static str
Returns concise user-facing cause text.
Sourcepub fn classify(source: DiagnosticSource, reason: &str) -> Self
pub fn classify(source: DiagnosticSource, reason: &str) -> Self
Classifies a failure from its boundary and reason.
Trait Implementations§
Source§impl Clone for FailureCause
impl Clone for FailureCause
Source§fn clone(&self) -> FailureCause
fn clone(&self) -> FailureCause
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 FailureCause
impl Debug for FailureCause
Source§impl Display for FailureCause
impl Display for FailureCause
Source§impl PartialEq for FailureCause
impl PartialEq for FailureCause
Source§fn eq(&self, other: &FailureCause) -> bool
fn eq(&self, other: &FailureCause) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for FailureCause
impl Eq for FailureCause
impl StructuralPartialEq for FailureCause
Auto Trait Implementations§
impl Freeze for FailureCause
impl RefUnwindSafe for FailureCause
impl Send for FailureCause
impl Sync for FailureCause
impl Unpin for FailureCause
impl UnsafeUnpin for FailureCause
impl UnwindSafe for FailureCause
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