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§
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".