pub struct CrawlConfig {
pub seed_url: Option<String>,
pub max_depth: u16,
pub global_concurrency: usize,
pub per_host_concurrency: usize,
pub per_host_delay_ms: u64,
}Fields§
§seed_url: Option<String>If Some, push this URL as the seed job before running. If None (e.g. Redis consumer-only), just drain the queue.
max_depth: u16§global_concurrency: usize§per_host_concurrency: usize§per_host_delay_ms: u64Trait Implementations§
Source§impl Clone for CrawlConfig
impl Clone for CrawlConfig
Source§fn clone(&self) -> CrawlConfig
fn clone(&self) -> CrawlConfig
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 moreAuto Trait Implementations§
impl Freeze for CrawlConfig
impl RefUnwindSafe for CrawlConfig
impl Send for CrawlConfig
impl Sync for CrawlConfig
impl Unpin for CrawlConfig
impl UnsafeUnpin for CrawlConfig
impl UnwindSafe for CrawlConfig
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