#[non_exhaustive]pub enum CrawlerEvent {
PersistState {
is_migrating: bool,
},
RequestFinished(HandledRequest),
RequestFailed {
request: Arc<Request>,
error: String,
},
SystemInfo(SystemSnapshot),
Aborting,
Exiting,
}Expand description
A control-plane event emitted during a crawler run.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
PersistState
Requests that subscribers persist crawler state.
RequestFinished(HandledRequest)
Reports a terminal request snapshot.
RequestFailed
Reports a request processing failure.
SystemInfo(SystemSnapshot)
Reports current host resource usage.
Aborting
Indicates that immediate cancellation has begun.
Exiting
Indicates that the crawler is exiting.
Trait Implementations§
Source§impl Clone for CrawlerEvent
impl Clone for CrawlerEvent
Source§fn clone(&self) -> CrawlerEvent
fn clone(&self) -> CrawlerEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CrawlerEvent
impl RefUnwindSafe for CrawlerEvent
impl Send for CrawlerEvent
impl Sync for CrawlerEvent
impl Unpin for CrawlerEvent
impl UnsafeUnpin for CrawlerEvent
impl UnwindSafe for CrawlerEvent
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