Skip to main content

Generator

Trait Generator 

Source
pub trait Generator: Send + Sync {
    // Required method
    fn generate(
        &self,
        options: NativeOptions,
        events: Events,
        cancel: CancellationToken,
    ) -> GenerationFuture<'_>;
}
Expand description

Injectable generation boundary so the TUI and GUI can be tested without ComfyUI.

Required Methods§

Source

fn generate( &self, options: NativeOptions, events: Events, cancel: CancellationToken, ) -> GenerationFuture<'_>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§