#[non_exhaustive]pub enum SkipReason {
MaxDepthExceeded {
depth: u32,
limit: u32,
},
MaxRequestsReached {
limit: u64,
},
StrategyExcluded,
GlobExcluded,
RegexExcluded,
TransformRejected {
reason: String,
},
DuplicateUniqueKey,
InvalidUrl,
}Expand description
Why an enqueue candidate was skipped.
Robots-based rejection remains deferred until robots policy support lands.
§Examples
use millipede_core::enqueue::SkipReason;
let reason = SkipReason::DuplicateUniqueKey;
assert_eq!(reason.to_string(), "duplicate unique key");Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
MaxDepthExceeded
The discovered child is deeper than the crawler policy permits.
MaxRequestsReached
The crawl has reached its configured request limit.
StrategyExcluded
The candidate did not satisfy the enqueue strategy.
GlobExcluded
A glob exclusion matched or no glob include matched.
RegexExcluded
A regex exclusion matched or no regex include matched.
TransformRejected
The transform explicitly rejected the request.
DuplicateUniqueKey
The request queue already knew this unique key.
InvalidUrl
The raw URL could not be resolved or a request could not be built.
Trait Implementations§
Source§impl Clone for SkipReason
impl Clone for SkipReason
Source§fn clone(&self) -> SkipReason
fn clone(&self) -> SkipReason
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 SkipReason
impl Debug for SkipReason
Source§impl Display for SkipReason
impl Display for SkipReason
impl Eq for SkipReason
Source§impl PartialEq for SkipReason
impl PartialEq for SkipReason
impl StructuralPartialEq for SkipReason
Auto Trait Implementations§
impl Freeze for SkipReason
impl RefUnwindSafe for SkipReason
impl Send for SkipReason
impl Sync for SkipReason
impl Unpin for SkipReason
impl UnsafeUnpin for SkipReason
impl UnwindSafe for SkipReason
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