pub enum HtmlError {
InputTooLarge {
size: usize,
max: usize,
},
Encoding(EncodingError),
Io(Error),
}Expand description
Error type for HTML parsing.
Variants§
InputTooLarge
Input was too large to parse.
Encoding(EncodingError)
Encoding detection or conversion failed.
Io(Error)
I/O error during streaming or async parsing.
Trait Implementations§
Source§impl Error for HtmlError
impl Error for HtmlError
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<EncodingError> for HtmlError
impl From<EncodingError> for HtmlError
Source§fn from(source: EncodingError) -> HtmlError
fn from(source: EncodingError) -> HtmlError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for HtmlError
impl !RefUnwindSafe for HtmlError
impl Send for HtmlError
impl Sync for HtmlError
impl Unpin for HtmlError
impl UnsafeUnpin for HtmlError
impl !UnwindSafe for HtmlError
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