pub enum Error {
Show 14 variants
MarkdownParse(String),
MarkdownToHtml(String),
SyntaxHighlight(String),
UnsupportedLanguage(String),
LanguageParserUnavailable(String),
LatexRender(String),
InvalidLatex(String),
UnknownLatexCommand(String),
Io(Error),
Serialization(String),
Deserialization(String),
InvalidInput(String),
Timeout(u64),
Internal(String),
}Expand description
Error type for the docs pipeline.
Variants§
MarkdownParse(String)
Error during markdown parsing
MarkdownToHtml(String)
Error during markdown to HTML conversion
SyntaxHighlight(String)
Syntax highlighting error
UnsupportedLanguage(String)
Unsupported language for syntax highlighting
Language parser not available
LatexRender(String)
LaTeX rendering error
InvalidLatex(String)
Invalid LaTeX syntax
UnknownLatexCommand(String)
Unknown LaTeX command
Io(Error)
Input/output error
Serialization(String)
Serialization error
Deserialization(String)
Deserialization error
InvalidInput(String)
Invalid input
Timeout(u64)
Timeout
Internal(String)
Internal error
Implementations§
Source§impl Error
impl Error
Sourcepub fn markdown_parse<S: Into<String>>(message: S) -> Self
pub fn markdown_parse<S: Into<String>>(message: S) -> Self
Create a new markdown parsing error
Sourcepub fn markdown_to_html<S: Into<String>>(message: S) -> Self
pub fn markdown_to_html<S: Into<String>>(message: S) -> Self
Create a new markdown to HTML conversion error
Sourcepub fn syntax_highlight<S: Into<String>>(message: S) -> Self
pub fn syntax_highlight<S: Into<String>>(message: S) -> Self
Create a new syntax highlighting error
Sourcepub fn unsupported_language<S: Into<String>>(language: S) -> Self
pub fn unsupported_language<S: Into<String>>(language: S) -> Self
Create a new unsupported language error
Create a new language parser unavailable error
Sourcepub fn latex_render<S: Into<String>>(message: S) -> Self
pub fn latex_render<S: Into<String>>(message: S) -> Self
Create a new LaTeX rendering error
Sourcepub fn invalid_latex<S: Into<String>>(message: S) -> Self
pub fn invalid_latex<S: Into<String>>(message: S) -> Self
Create a new invalid LaTeX error
Sourcepub fn unknown_latex_command<S: Into<String>>(command: S) -> Self
pub fn unknown_latex_command<S: Into<String>>(command: S) -> Self
Create a new unknown LaTeX command error
Sourcepub fn serialization<S: Into<String>>(message: S) -> Self
pub fn serialization<S: Into<String>>(message: S) -> Self
Create a new serialization error
Sourcepub fn deserialization<S: Into<String>>(message: S) -> Self
pub fn deserialization<S: Into<String>>(message: S) -> Self
Create a new deserialization error
Sourcepub fn invalid_input<S: Into<String>>(message: S) -> Self
pub fn invalid_input<S: Into<String>>(message: S) -> Self
Create a new invalid input error
Trait Implementations§
Source§impl Error for Error
impl Error for Error
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Auto Trait Implementations§
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error
impl Freeze for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more