pub struct CrawlEntry {
pub url: Url,
pub depth: u32,
pub priority: i32,
pub parent_url: Option<Url>,
pub added_at: Instant,
}Expand description
Entry in the frontier
Fields§
§url: UrlURL to crawl
depth: u32Crawl depth
priority: i32Priority score (higher = more priority)
parent_url: Option<Url>Parent URL (where this link came from)
added_at: InstantTimestamp when added
Implementations§
Trait Implementations§
Source§impl Clone for CrawlEntry
impl Clone for CrawlEntry
Source§fn clone(&self) -> CrawlEntry
fn clone(&self) -> CrawlEntry
Returns a duplicate of the value. Read more
1.0.0 · 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 CrawlEntry
impl Debug for CrawlEntry
Source§impl Ord for CrawlEntry
impl Ord for CrawlEntry
Source§impl PartialEq for CrawlEntry
impl PartialEq for CrawlEntry
Source§impl PartialOrd for CrawlEntry
impl PartialOrd for CrawlEntry
impl Eq for CrawlEntry
Auto Trait Implementations§
impl Freeze for CrawlEntry
impl RefUnwindSafe for CrawlEntry
impl Send for CrawlEntry
impl Sync for CrawlEntry
impl Unpin for CrawlEntry
impl UnwindSafe for CrawlEntry
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.