pub enum HarvestEvent<'a> {
BatchStarted {
total_portals: usize,
},
PortalStarted {
portal_index: usize,
total_portals: usize,
portal_name: &'a str,
portal_url: &'a str,
},
ExistingDatasetsFound {
count: usize,
},
PortalDatasetsFound {
count: usize,
},
DatasetProcessed {
current: usize,
total: usize,
created: usize,
updated: usize,
unchanged: usize,
failed: usize,
skipped: usize,
},
PortalCompleted {
portal_index: usize,
total_portals: usize,
portal_name: &'a str,
stats: &'a SyncStats,
},
PortalFailed {
portal_index: usize,
total_portals: usize,
portal_name: &'a str,
error: &'a str,
},
BatchCompleted {
summary: &'a BatchHarvestSummary,
},
PortalCancelled {
portal_index: usize,
total_portals: usize,
portal_name: &'a str,
stats: &'a SyncStats,
},
BatchCancelled {
completed_portals: usize,
total_portals: usize,
},
CircuitBreakerOpen {
service: &'a str,
retry_after: Duration,
},
}Expand description
Events emitted during harvesting operations.
These events provide fine-grained progress information that consumers can use for logging, UI updates, or metrics collection.
Variants§
BatchStarted
Batch harvest starting.
PortalStarted
Single portal harvest starting.
Fields
ExistingDatasetsFound
Found existing datasets in database for portal.
PortalDatasetsFound
Found datasets on the portal.
DatasetProcessed
Progress update during dataset processing.
Fields
PortalCompleted
Single portal harvest completed successfully.
Fields
PortalFailed
Single portal harvest failed.
Fields
BatchCompleted
Batch harvest completed.
Fields
§
summary: &'a BatchHarvestSummaryAggregated summary of all portal results.
PortalCancelled
Single portal harvest was cancelled.
Fields
BatchCancelled
Batch harvest was cancelled.
Fields
CircuitBreakerOpen
Circuit breaker is open, harvest pausing/failing.
Trait Implementations§
Source§impl<'a> Clone for HarvestEvent<'a>
impl<'a> Clone for HarvestEvent<'a>
Source§fn clone(&self) -> HarvestEvent<'a>
fn clone(&self) -> HarvestEvent<'a>
Returns a duplicate of the value. Read more
1.0.0 · 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<'a> Freeze for HarvestEvent<'a>
impl<'a> RefUnwindSafe for HarvestEvent<'a>
impl<'a> Send for HarvestEvent<'a>
impl<'a> Sync for HarvestEvent<'a>
impl<'a> Unpin for HarvestEvent<'a>
impl<'a> UnwindSafe for HarvestEvent<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more