pub enum EnqueueStrategy {
All,
SameHostname,
SameDomain,
SameOrigin,
}Expand description
Controls how closely a discovered URL must relate to its parent URL.
The strategy applies to extractor and raw-link candidates. Explicit url::Url values passed
through EnqueueLinksOptions::urls are caller-selected inputs and bypass relationship
filtering.
§Examples
use millipede_core::link_extraction::EnqueueStrategy;
assert_eq!(EnqueueStrategy::default(), EnqueueStrategy::SameHostname);Variants§
All
Allows every HTTP or HTTPS URL.
SameHostname
Allows URLs whose hostname exactly matches the parent hostname.
SameDomain
Allows URLs with the same registrable domain as the parent.
SameOrigin
Allows URLs with the same scheme, hostname, and effective port as the parent.
Trait Implementations§
Source§impl Clone for EnqueueStrategy
impl Clone for EnqueueStrategy
Source§fn clone(&self) -> EnqueueStrategy
fn clone(&self) -> EnqueueStrategy
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 moreimpl Copy for EnqueueStrategy
Source§impl Debug for EnqueueStrategy
impl Debug for EnqueueStrategy
Source§impl Default for EnqueueStrategy
impl Default for EnqueueStrategy
Source§fn default() -> EnqueueStrategy
fn default() -> EnqueueStrategy
Returns the “default value” for a type. Read more
impl Eq for EnqueueStrategy
Source§impl PartialEq for EnqueueStrategy
impl PartialEq for EnqueueStrategy
impl StructuralPartialEq for EnqueueStrategy
Auto Trait Implementations§
impl Freeze for EnqueueStrategy
impl RefUnwindSafe for EnqueueStrategy
impl Send for EnqueueStrategy
impl Sync for EnqueueStrategy
impl Unpin for EnqueueStrategy
impl UnsafeUnpin for EnqueueStrategy
impl UnwindSafe for EnqueueStrategy
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