pub struct CrawlerContext<S, I>(pub Arc<CrawlerContextInner<S, I>>)
where
S: Spider<Item = I>,
I: ScrapedItem;Expand description
Aggregated context shared across all crawler tasks.
This struct wraps CrawlerContextInner in a single Arc, allowing efficient cloning with just one atomic reference count operation.
Tuple Fields§
§0: Arc<CrawlerContextInner<S, I>>Implementations§
Source§impl<S, I> CrawlerContext<S, I>where
S: Spider<Item = I>,
I: ScrapedItem,
impl<S, I> CrawlerContext<S, I>where
S: Spider<Item = I>,
I: ScrapedItem,
Trait Implementations§
Source§impl<S, I> Clone for CrawlerContext<S, I>where
S: Spider<Item = I>,
I: ScrapedItem,
impl<S, I> Clone for CrawlerContext<S, I>where
S: Spider<Item = I>,
I: ScrapedItem,
Auto Trait Implementations§
impl<S, I> Freeze for CrawlerContext<S, I>
impl<S, I> !RefUnwindSafe for CrawlerContext<S, I>
impl<S, I> Send for CrawlerContext<S, I>
impl<S, I> Sync for CrawlerContext<S, I>
impl<S, I> Unpin for CrawlerContext<S, I>
impl<S, I> UnsafeUnpin for CrawlerContext<S, I>
impl<S, I> !UnwindSafe for CrawlerContext<S, I>
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