Enum comfyui_api::api::websocket::WebSocketApiError
source · #[non_exhaustive]pub enum WebSocketApiError {
ParseError(ParseError),
ConnectFailed(Error),
InvalidResponse(Error),
ReadFailed(Error),
}
Expand description
Errors that can occur when interacting with WebSocketApi
.
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
ConnectFailed(Error)
Error parsing endpoint URL
InvalidResponse(Error)
An error occurred while parsing the response from the API.
ReadFailed(Error)
An error occurred while reading websocket message.
Trait Implementations§
source§impl Debug for WebSocketApiError
impl Debug for WebSocketApiError
source§impl Display for WebSocketApiError
impl Display for WebSocketApiError
source§impl Error for WebSocketApiError
impl Error for WebSocketApiError
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 WebSocketApiError
impl From<Error> for WebSocketApiError
source§impl From<Error> for WebSocketApiError
impl From<Error> for WebSocketApiError
source§impl From<ParseError> for WebSocketApiError
impl From<ParseError> for WebSocketApiError
source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> 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 WebSocketApiError
impl !RefUnwindSafe for WebSocketApiError
impl Send for WebSocketApiError
impl Sync for WebSocketApiError
impl Unpin for WebSocketApiError
impl !UnwindSafe for WebSocketApiError
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