Skip to main content

ProgressEvent

Enum ProgressEvent 

Source
pub enum ProgressEvent {
Show 23 variants JobCreated { job_id: String, input_path: String, output_path: String, timestamp_ms: u64, }, StageStarted { stage: String, timestamp_ms: u64, }, StageFinished { stage: String, timestamp_ms: u64, }, RuntimeConfigResolved {
Show 23 fields profile: String, provider_preset: Option<String>, provider: String, model: String, concurrency: usize, max_attempts: usize, provider_max_attempts: usize, validation_max_attempts: usize, retry_after_policy: String, max_backoff_seconds: u64, timeout_seconds: u64, batch_enabled: bool, batch_target_tokens: usize, batch_max_items: usize, adaptive_batch_sizing: bool, adaptive_concurrency: bool, compact_prompts: bool, thinking_disabled: bool, json_mode: String, model_context_tokens: Option<u32>, max_output_tokens: Option<u32>, batch_max_output_tokens: Option<u32>, timestamp_ms: u64,
}, SegmentationFinished { segment_count: usize, timestamp_ms: u64, }, CacheScanFinished { hits: usize, misses: usize, timestamp_ms: u64, }, BatchQueued { batch_id: String, item_count: usize, timestamp_ms: u64, }, BatchSplit { batch_id: String, left_items: usize, right_items: usize, timestamp_ms: u64, }, BatchRepairStarted { failed_item_count: usize, timestamp_ms: u64, }, BatchRepairFinished { repaired_items: usize, still_failed_items: usize, timestamp_ms: u64, }, RequestStarted { request_id: String, batch_id: Option<String>, segment_id: Option<String>, provider: Option<String>, model: Option<String>, prompt_template: Option<String>, items: usize, estimated_input_tokens: usize, max_output_tokens: Option<u32>, active_requests: usize, target_concurrency: usize, timestamp_ms: u64, }, RequestFinished { request_id: String, batch_id: Option<String>, segment_id: Option<String>, status: String, latency_ms: u64, status_code: Option<u16>, finish_reason: Option<String>, retry_count: usize, input_tokens: Option<u64>, output_tokens: Option<u64>, error_kind: Option<String>, timestamp_ms: u64, }, SegmentStarted { segment_id: String, ordinal: usize, timestamp_ms: u64, }, SegmentFinished { segment_id: String, status: String, input_tokens: Option<u64>, output_tokens: Option<u64>, timestamp_ms: u64, }, CheckpointQueued { queued: usize, timestamp_ms: u64, }, CheckpointFlushed { segment_id: Option<String>, flushed_count: usize, latency_ms: Option<u64>, timestamp_ms: u64, }, ConcurrencyChanged { previous: usize, current: usize, reason: String, timestamp_ms: u64, }, BatchSizingChanged { batch_id: Option<String>, previous_target: usize, new_target: usize, previous_max_items: usize, new_max_items: usize, reason: String, timestamp_ms: u64, }, ArtifactWritten { path: String, timestamp_ms: u64, }, Warning { kind: String, message: String, timestamp_ms: u64, }, Error { kind: String, message: String, timestamp_ms: u64, }, TranslationFinished { succeeded: usize, cached: usize, needs_review: usize, failed: usize, input_tokens: u64, output_tokens: u64, elapsed_ms: u64, timestamp_ms: u64, }, DroppedEvents { count: usize, timestamp_ms: u64, },
}

Variants§

§

JobCreated

Fields

§job_id: String
§input_path: String
§output_path: String
§timestamp_ms: u64
§

StageStarted

Fields

§stage: String
§timestamp_ms: u64
§

StageFinished

Fields

§stage: String
§timestamp_ms: u64
§

RuntimeConfigResolved

Fields

§profile: String
§provider_preset: Option<String>
§provider: String
§model: String
§concurrency: usize
§max_attempts: usize
§provider_max_attempts: usize
§validation_max_attempts: usize
§retry_after_policy: String
§max_backoff_seconds: u64
§timeout_seconds: u64
§batch_enabled: bool
§batch_target_tokens: usize
§batch_max_items: usize
§adaptive_batch_sizing: bool
§adaptive_concurrency: bool
§compact_prompts: bool
§thinking_disabled: bool
§json_mode: String
§model_context_tokens: Option<u32>
§max_output_tokens: Option<u32>
§batch_max_output_tokens: Option<u32>
§timestamp_ms: u64
§

SegmentationFinished

Fields

§segment_count: usize
§timestamp_ms: u64
§

CacheScanFinished

Fields

§hits: usize
§misses: usize
§timestamp_ms: u64
§

BatchQueued

Fields

§batch_id: String
§item_count: usize
§timestamp_ms: u64
§

BatchSplit

Fields

§batch_id: String
§left_items: usize
§right_items: usize
§timestamp_ms: u64
§

BatchRepairStarted

Fields

§failed_item_count: usize
§timestamp_ms: u64
§

BatchRepairFinished

Fields

§repaired_items: usize
§still_failed_items: usize
§timestamp_ms: u64
§

RequestStarted

Fields

§request_id: String
§batch_id: Option<String>
§segment_id: Option<String>
§provider: Option<String>
§prompt_template: Option<String>
§items: usize
§estimated_input_tokens: usize
§max_output_tokens: Option<u32>
§active_requests: usize
§target_concurrency: usize
§timestamp_ms: u64
§

RequestFinished

Fields

§request_id: String
§batch_id: Option<String>
§segment_id: Option<String>
§status: String
§latency_ms: u64
§status_code: Option<u16>
§finish_reason: Option<String>
§retry_count: usize
§input_tokens: Option<u64>
§output_tokens: Option<u64>
§error_kind: Option<String>
§timestamp_ms: u64
§

SegmentStarted

Fields

§segment_id: String
§ordinal: usize
§timestamp_ms: u64
§

SegmentFinished

Fields

§segment_id: String
§status: String
§input_tokens: Option<u64>
§output_tokens: Option<u64>
§timestamp_ms: u64
§

CheckpointQueued

Fields

§queued: usize
§timestamp_ms: u64
§

CheckpointFlushed

Fields

§segment_id: Option<String>
§flushed_count: usize
§latency_ms: Option<u64>
§timestamp_ms: u64
§

ConcurrencyChanged

Fields

§previous: usize
§current: usize
§reason: String
§timestamp_ms: u64
§

BatchSizingChanged

Fields

§batch_id: Option<String>
§previous_target: usize
§new_target: usize
§previous_max_items: usize
§new_max_items: usize
§reason: String
§timestamp_ms: u64
§

ArtifactWritten

Fields

§path: String
§timestamp_ms: u64
§

Warning

Fields

§kind: String
§message: String
§timestamp_ms: u64
§

Error

Fields

§kind: String
§message: String
§timestamp_ms: u64
§

TranslationFinished

Fields

§succeeded: usize
§cached: usize
§needs_review: usize
§failed: usize
§input_tokens: u64
§output_tokens: u64
§elapsed_ms: u64
§timestamp_ms: u64
§

DroppedEvents

Fields

§count: usize
§timestamp_ms: u64

Trait Implementations§

Source§

impl Clone for ProgressEvent

Source§

fn clone(&self) -> ProgressEvent

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ProgressEvent

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Serialize for ProgressEvent

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.