pub enum WebUIError {
Io {
context: String,
source: Error,
},
ComponentRegistration(String),
ComponentDiscovery(String),
Parse {
context: String,
source: ParserError,
},
Protocol(ProtocolError),
Serialization(String),
Rendering(HandlerError),
}Expand description
Errors that can occur during WebUI build, render, or inspection operations.
Variants§
Io
I/O error (file read/write failures).
ComponentRegistration(String)
Component registration failure.
ComponentDiscovery(String)
Component discovery failure (npm packages or local paths).
Parse
HTML/CSS parsing failure with context about which file failed.
Protocol(ProtocolError)
Protocol serialization or deserialization failure.
Serialization(String)
JSON serialization failure.
Rendering(HandlerError)
Handler rendering error.
Trait Implementations§
Source§impl Debug for WebUIError
impl Debug for WebUIError
Source§impl Display for WebUIError
impl Display for WebUIError
Source§impl Error for WebUIError
impl Error for WebUIError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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<HandlerError> for WebUIError
impl From<HandlerError> for WebUIError
Source§fn from(source: HandlerError) -> Self
fn from(source: HandlerError) -> Self
Converts to this type from the input type.
Source§impl From<ProtocolError> for WebUIError
impl From<ProtocolError> for WebUIError
Source§fn from(source: ProtocolError) -> Self
fn from(source: ProtocolError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for WebUIError
impl !RefUnwindSafe for WebUIError
impl Send for WebUIError
impl Sync for WebUIError
impl Unpin for WebUIError
impl UnsafeUnpin for WebUIError
impl !UnwindSafe for WebUIError
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