pub struct Netrunner {
pub storage: PathBuf,
pub state: NetrunnerState,
/* private fields */
}
Fields§
§storage: PathBuf
§state: NetrunnerState
Implementations§
Source§impl Netrunner
impl Netrunner
pub fn new(lens: LensConfig) -> Self
pub fn url_txt_path(&self) -> PathBuf
pub async fn get_urls(&mut self) -> Vec<String>
Sourcepub async fn crawl(&mut self, opts: CrawlOpts) -> Result<Option<ArchiveFiles>>
pub async fn crawl(&mut self, opts: CrawlOpts) -> Result<Option<ArchiveFiles>>
Kick off a crawl for URLs represented by
pub async fn crawl_url( &mut self, url: String, ) -> Result<Vec<(ArchiveRecord, Option<ParseResult>)>>
pub fn clear_cache(&self) -> Result<(), Error>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Netrunner
impl !RefUnwindSafe for Netrunner
impl Send for Netrunner
impl Sync for Netrunner
impl Unpin for Netrunner
impl !UnwindSafe for Netrunner
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