pub enum ImageGenStreamEvent {
PartialImage(ImageGenPartialImageEvent),
Completed(ImageGenCompletedEvent),
}Variants§
PartialImage(ImageGenPartialImageEvent)
Emitted when a partial image is available during image generation streaming.
Completed(ImageGenCompletedEvent)
Emitted when image generation has completed and the final image is available.
Trait Implementations§
Source§impl Clone for ImageGenStreamEvent
impl Clone for ImageGenStreamEvent
Source§fn clone(&self) -> ImageGenStreamEvent
fn clone(&self) -> ImageGenStreamEvent
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 ImageGenStreamEvent
impl Debug for ImageGenStreamEvent
Source§impl<'de> Deserialize<'de> for ImageGenStreamEvent
impl<'de> Deserialize<'de> for ImageGenStreamEvent
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
Source§impl EventType for ImageGenStreamEvent
impl EventType for ImageGenStreamEvent
Source§fn event_type(&self) -> &'static str
fn event_type(&self) -> &'static str
Returns the event type string (e.g., “batch.cancelled”)
Auto Trait Implementations§
impl Freeze for ImageGenStreamEvent
impl RefUnwindSafe for ImageGenStreamEvent
impl Send for ImageGenStreamEvent
impl Sync for ImageGenStreamEvent
impl Unpin for ImageGenStreamEvent
impl UnwindSafe for ImageGenStreamEvent
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