pub struct CrawlOpts {
pub seed_url: Option<String>,
pub global_concurrency: usize,
pub per_host_concurrency: usize,
pub per_host_delay_ms: u64,
pub max_depth: u16,
pub redis_url: Option<String>,
pub redis_rate_limit: bool,
pub storage_dir: Option<PathBuf>,
}Fields§
§seed_url: Option<String>Starting URL. Required unless using –redis-url as consumer-only.
global_concurrency: usize§per_host_concurrency: usize§per_host_delay_ms: u64§max_depth: u16§redis_url: Option<String>Redis URL for distributed mode. If set with no value, uses redis://127.0.0.1:6379/ (matches docker-compose).
redis_rate_limit: boolWhen using Redis, use Redis for per-host rate limiting so all processes share the same limit.
storage_dir: Option<PathBuf>Directory to persist fetch results (metadata JSON + body files). If unset, nothing is written to disk.
Trait Implementations§
Source§impl Args for CrawlOpts
impl Args for CrawlOpts
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl CommandFactory for CrawlOpts
impl CommandFactory for CrawlOpts
Source§impl FromArgMatches for CrawlOpts
impl FromArgMatches for CrawlOpts
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§impl Parser for CrawlOpts
impl Parser for CrawlOpts
Source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Parse from iterator, exit on error.
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Parse from iterator, return Err on error.
Source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Auto Trait Implementations§
impl Freeze for CrawlOpts
impl RefUnwindSafe for CrawlOpts
impl Send for CrawlOpts
impl Sync for CrawlOpts
impl Unpin for CrawlOpts
impl UnsafeUnpin for CrawlOpts
impl UnwindSafe for CrawlOpts
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