pub struct CrawlerState {
pub in_flight_requests: AtomicUsize,
pub parsing_responses: AtomicUsize,
pub processing_items: AtomicUsize,
}Expand description
Represents the shared state of the crawler’s various actors.
Fields§
§in_flight_requests: AtomicUsizeThe number of requests currently being downloaded.
parsing_responses: AtomicUsizeThe number of responses currently being parsed.
processing_items: AtomicUsizeThe number of items currently being processed by pipelines.
Implementations§
Trait Implementations§
Source§impl Debug for CrawlerState
impl Debug for CrawlerState
Source§impl Default for CrawlerState
impl Default for CrawlerState
Source§fn default() -> CrawlerState
fn default() -> CrawlerState
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for CrawlerState
impl RefUnwindSafe for CrawlerState
impl Send for CrawlerState
impl Sync for CrawlerState
impl Unpin for CrawlerState
impl UnwindSafe for CrawlerState
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