pub struct ProgressEventData {
pub value: usize,
pub max: usize,
}Expand description
Event payload for a progress update, including current value and maximum value.
This structure is received when ComfyUI reports progress of an operation, such as image generation or processing.
Fields§
§value: usizeThe current progress value representing the completed steps.
max: usizeThe maximum progress value representing the total number of steps.
Trait Implementations§
Source§impl Clone for ProgressEventData
impl Clone for ProgressEventData
Source§fn clone(&self) -> ProgressEventData
fn clone(&self) -> ProgressEventData
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 moreSource§impl Debug for ProgressEventData
impl Debug for ProgressEventData
Source§impl<'de> Deserialize<'de> for ProgressEventData
impl<'de> Deserialize<'de> for ProgressEventData
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ProgressEventData
impl RefUnwindSafe for ProgressEventData
impl Send for ProgressEventData
impl Sync for ProgressEventData
impl Unpin for ProgressEventData
impl UnwindSafe for ProgressEventData
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