Enum css_inline::error::InlineError
source · pub enum InlineError {
MissingStyleSheet {
path: String,
},
IO(Error),
Network {
error: Error,
location: String,
},
ParseError(Cow<'static, str>),
}
Expand description
Inlining error
Variants§
MissingStyleSheet
Missing stylesheet file.
IO(Error)
Input-output error. May happen during writing the resulting HTML or retrieving a stylesheet from the filesystem.
Network
Network-related problem. E.g. resource is not available.
Fields
ParseError(Cow<'static, str>)
Syntax errors or unsupported selectors.
Trait Implementations§
source§impl Debug for InlineError
impl Debug for InlineError
source§impl Display for InlineError
impl Display for InlineError
source§impl Error for InlineError
impl Error for InlineError
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<(ParseError<'_, ()>, &str)> for InlineError
impl From<(ParseError<'_, ()>, &str)> for InlineError
Auto Trait Implementations§
impl Freeze for InlineError
impl !RefUnwindSafe for InlineError
impl Send for InlineError
impl Sync for InlineError
impl Unpin for InlineError
impl !UnwindSafe for InlineError
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