pub enum Error {
IoError {
source: Error,
},
Utf8Error {
source: Utf8Error,
},
FromUtf8Error {
source: FromUtf8Error,
},
UrlParseError {
source: Option<ParseError>,
},
TracingFilterError {
source: ParseError,
},
TracingSubscriberError {
source: SetGlobalDefaultError,
},
CodespanReportingError {
source: Error,
},
LanguageValidationError {
source: Diagnostic<usize>,
},
LanguageTagError {
source: ParseError,
},
GeneratorError {
name: String,
message: String,
},
}
Expand description
The Error type for this crate.
Variants§
IoError
An error was signaled by the standard library I/O functions.
Utf8Error
An error was signaled by the standard string conversion functions.
FromUtf8Error
An error was signaled by the standard string conversion functions.
Fields
§
source: FromUtf8Error
UrlParseError
An error was signaled while parsing a Url
. Note that the methods from_file_path
and
from_directory_path
return ()
on error.
Fields
§
source: Option<ParseError>
TracingFilterError
An error was signaled while parsing a tracing filter expression.
Fields
§
source: ParseError
TracingSubscriberError
An error was signaled while initializing a tracing subscriber..
Fields
§
source: SetGlobalDefaultError
CodespanReportingError
LanguageValidationError
This allows for a complete Diagnostic
structure to be passed as an Error.
Fields
§
source: Diagnostic<usize>
LanguageTagError
Fields
§
source: ParseError
GeneratorError
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)>
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<FromUtf8Error> for Error
impl From<FromUtf8Error> for Error
Source§fn from(source: FromUtf8Error) -> Error
fn from(source: FromUtf8Error) -> Error
Converts to this type from the input type.
Source§impl From<ParseError> for Error
impl From<ParseError> for Error
Source§fn from(source: ParseError) -> Error
fn from(source: ParseError) -> Error
Converts to this type from the input type.
Source§impl From<ParseError> for Error
impl From<ParseError> for Error
Source§fn from(source: ParseError) -> Error
fn from(source: ParseError) -> Error
Converts to this type from the input type.
Source§impl From<ParseError> for Error
impl From<ParseError> for Error
Source§fn from(source: ParseError) -> Error
fn from(source: ParseError) -> Error
Converts to this type from the input type.
Source§impl From<SetGlobalDefaultError> for Error
impl From<SetGlobalDefaultError> for Error
Source§fn from(source: SetGlobalDefaultError) -> Error
fn from(source: SetGlobalDefaultError) -> Error
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe 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
Mutably borrows from an owned value. Read more