#[non_exhaustive]pub enum Report {
Done(Seed),
Failed(Seed),
Skipped(Seed),
Cancelled(Seed),
Retry {
seed: Seed,
after: Option<Duration>,
},
Backoff {
tag: Option<Tag>,
until: Instant,
},
}Expand description
How a popped seed ended, see Frontier::report.
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.
Done(Seed)
The seed was crawled.
Failed(Seed)
The seed failed and will not be tried again.
Skipped(Seed)
The seed was not crawled on purpose, e.g. robots.txt disallows it or its tag was aborted.
Cancelled(Seed)
The crawl stopped before the seed finished; a persistent frontier should keep it for the next run.
Retry
The seed should be tried again.
Fields
Backoff
Seeds with tag should not be crawled before until.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Report
impl RefUnwindSafe for Report
impl Send for Report
impl Sync for Report
impl Unpin for Report
impl UnsafeUnpin for Report
impl UnwindSafe for Report
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