Enum comfyui_api::comfy::ComfyApiError
source · #[non_exhaustive]pub enum ComfyApiError {
CreateApiFailed(ApiError),
ExecutionInterrupted {
response: ExecutionInterrupted,
},
ExecutionError {
exception_type: String,
exception_message: String,
},
ReceiveUpdateFailure(WebSocketApiError),
PromptTaskNotFound(HistoryApiError),
SendPromptFailed(PromptApiError),
GetImageFailed(ViewApiError),
UploadImageFailed(UploadApiError),
}
Expand description
Errors that can occur opening API endpoints.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
CreateApiFailed(ApiError)
Error parsing endpoint URL
ExecutionInterrupted
Execution was interrupted
Fields
§
response: ExecutionInterrupted
ExecutionError
Error occurred during execution
ReceiveUpdateFailure(WebSocketApiError)
Connection error occurred during prompt execution
PromptTaskNotFound(HistoryApiError)
Prompt task not found
SendPromptFailed(PromptApiError)
Error sending prompt to API
GetImageFailed(ViewApiError)
Error getting image from API
UploadImageFailed(UploadApiError)
Error uploading image to API
Trait Implementations§
source§impl Debug for ComfyApiError
impl Debug for ComfyApiError
source§impl Display for ComfyApiError
impl Display for ComfyApiError
source§impl Error for ComfyApiError
impl Error for ComfyApiError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<ApiError> for ComfyApiError
impl From<ApiError> for ComfyApiError
source§impl From<PromptApiError> for ComfyApiError
impl From<PromptApiError> for ComfyApiError
source§fn from(source: PromptApiError) -> Self
fn from(source: PromptApiError) -> Self
Converts to this type from the input type.
source§impl From<UploadApiError> for ComfyApiError
impl From<UploadApiError> for ComfyApiError
source§fn from(source: UploadApiError) -> Self
fn from(source: UploadApiError) -> Self
Converts to this type from the input type.
source§impl From<ViewApiError> for ComfyApiError
impl From<ViewApiError> for ComfyApiError
source§fn from(source: ViewApiError) -> Self
fn from(source: ViewApiError) -> Self
Converts to this type from the input type.
source§impl From<WebSocketApiError> for ComfyApiError
impl From<WebSocketApiError> for ComfyApiError
source§fn from(source: WebSocketApiError) -> Self
fn from(source: WebSocketApiError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for ComfyApiError
impl !RefUnwindSafe for ComfyApiError
impl Send for ComfyApiError
impl Sync for ComfyApiError
impl Unpin for ComfyApiError
impl !UnwindSafe for ComfyApiError
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