pub enum ChainProgressEvent {
ChainStart {
stage_count: u32,
estimated_total_frames: u32,
},
StageStart {
stage_idx: u32,
},
DenoiseStep {
stage_idx: u32,
step: u32,
total: u32,
},
StageDone {
stage_idx: u32,
frames_emitted: u32,
},
Stitching {
total_frames: u32,
},
}Expand description
Chain-specific SSE progress event. Streamed as data: JSON frames from
POST /api/generate/chain/stream under the event: progress SSE type.
Per-stage denoise steps are wrapped with stage_idx so consumers can
render stacked progress bars (overall chain + per-stage) without a
separate subscription. Non-denoise engine events (weight load, cache
hits, etc.) are intentionally not forwarded through this enum in v1 —
they’re scoped to individual stages and the UX goal for v1 is per-stage
progress, not per-component telemetry.
Variants§
ChainStart
Emitted once at the start of the chain, after normalisation. Gives consumers the final stage count and the target pre-trim frame total so they can size progress bars up front.
StageStart
Stage stage_idx (0-indexed) has started its denoise loop.
DenoiseStep
Per-step denoise progress for the active stage.
StageDone
Stage finished generating; frames_emitted is the raw clip frame
count before motion-tail trim at stitch time.
Stitching
All stages complete; stitching/encoding the final MP4.
Trait Implementations§
Source§impl Clone for ChainProgressEvent
impl Clone for ChainProgressEvent
Source§fn clone(&self) -> ChainProgressEvent
fn clone(&self) -> ChainProgressEvent
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl ComposeSchema for ChainProgressEvent
impl ComposeSchema for ChainProgressEvent
Source§impl Debug for ChainProgressEvent
impl Debug for ChainProgressEvent
Source§impl<'de> Deserialize<'de> for ChainProgressEvent
impl<'de> Deserialize<'de> for ChainProgressEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for ChainProgressEvent
impl PartialEq for ChainProgressEvent
Source§fn eq(&self, other: &ChainProgressEvent) -> bool
fn eq(&self, other: &ChainProgressEvent) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for ChainProgressEvent
impl Serialize for ChainProgressEvent
Source§impl ToSchema for ChainProgressEvent
impl ToSchema for ChainProgressEvent
impl Eq for ChainProgressEvent
impl StructuralPartialEq for ChainProgressEvent
Auto Trait Implementations§
impl Freeze for ChainProgressEvent
impl RefUnwindSafe for ChainProgressEvent
impl Send for ChainProgressEvent
impl Sync for ChainProgressEvent
impl Unpin for ChainProgressEvent
impl UnsafeUnpin for ChainProgressEvent
impl UnwindSafe for ChainProgressEvent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.