pub struct ComfyUi<'runtime> {
pub http: &'runtime dyn Transport,
pub download: &'runtime dyn DownloadTransport,
pub poll_interval: Duration,
pub deadline: Duration,
pub events: Option<Events>,
}Fields§
§http: &'runtime dyn Transport§download: &'runtime dyn DownloadTransport§poll_interval: Duration§deadline: Duration§events: Option<Events>Implementations§
Source§impl ComfyUi<'_>
impl ComfyUi<'_>
Sourcepub async fn ready(
&self,
endpoint: &str,
cancel: &CancellationToken,
) -> Result<ComfyStatus, GenerationError>
pub async fn ready( &self, endpoint: &str, cancel: &CancellationToken, ) -> Result<ComfyStatus, GenerationError>
Confirms the listener is ComfyUI and returns its reported devices and free memory.
Sourcepub async fn install(
&self,
model: &GenerationModel,
comfyui_dir: &Path,
cancel: &CancellationToken,
) -> Result<Vec<InstalledWeight>, GenerationError>
pub async fn install( &self, model: &GenerationModel, comfyui_dir: &Path, cancel: &CancellationToken, ) -> Result<Vec<InstalledWeight>, GenerationError>
Installs (or re-verifies) every pinned weight under <comfyui>/models/<folder>/rigspark.
pub async fn generate( &self, request: &GenerationRequest<'_>, cancel: &CancellationToken, ) -> Result<GenerationOutcome, GenerationError>
Auto Trait Implementations§
impl<'runtime> !RefUnwindSafe for ComfyUi<'runtime>
impl<'runtime> !UnwindSafe for ComfyUi<'runtime>
impl<'runtime> Forget for ComfyUi<'runtime>
impl<'runtime> Freeze for ComfyUi<'runtime>
impl<'runtime> Send for ComfyUi<'runtime>
impl<'runtime> Sync for ComfyUi<'runtime>
impl<'runtime> Unpin for ComfyUi<'runtime>
impl<'runtime> UnsafeUnpin for ComfyUi<'runtime>
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