Enum comfyui_api::api::view::ViewApiError
source · #[non_exhaustive]pub enum ViewApiError {
ParseError(ParseError),
RequestFailed(Error),
GetBytesFailed(Error),
GetTextFailed(Error),
ViewImageFailed {
status: StatusCode,
error: String,
},
}
Expand description
Errors that can occur when interacting with ViewApi
.
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.
ParseError(ParseError)
Error parsing endpoint URL
RequestFailed(Error)
Error sending request
GetBytesFailed(Error)
An error occurred getting response bytes.
GetTextFailed(Error)
An error occurred getting response text.
ViewImageFailed
Server returned an error when uploading file
Trait Implementations§
source§impl Debug for ViewApiError
impl Debug for ViewApiError
source§impl Display for ViewApiError
impl Display for ViewApiError
source§impl Error for ViewApiError
impl Error for ViewApiError
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<Error> for ViewApiError
impl From<Error> for ViewApiError
source§impl From<ParseError> for ViewApiError
impl From<ParseError> for ViewApiError
source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
source§impl From<ViewApiError> for ApiError
impl From<ViewApiError> for ApiError
source§fn from(source: ViewApiError) -> Self
fn from(source: ViewApiError) -> 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.
Auto Trait Implementations§
impl Freeze for ViewApiError
impl !RefUnwindSafe for ViewApiError
impl Send for ViewApiError
impl Sync for ViewApiError
impl Unpin for ViewApiError
impl !UnwindSafe for ViewApiError
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