Enum sdml_errors::errors::Error
source · 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,
},
GeneratorError {
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: FromUtf8ErrorUrlParseError
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: ParseErrorTracingSubscriberError
An error was signaled while initializing a tracing subscriber..
Fields
§
source: SetGlobalDefaultErrorCodespanReportingError
LanguageValidationError
This allows for a complete Diagnostic structure to be passed as an Error.
Fields
§
source: DiagnosticGeneratorError
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)>
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<Diagnostic<usize>> for Error
impl From<Diagnostic<usize>> for Error
source§fn from(source: Diagnostic) -> Self
fn from(source: Diagnostic) -> Self
Converts to this type from the input type.
source§impl From<FromUtf8Error> for Error
impl From<FromUtf8Error> for Error
source§fn from(source: FromUtf8Error) -> Self
fn from(source: FromUtf8Error) -> Self
Converts to this type from the input type.
source§impl From<ParseError> for Error
impl From<ParseError> for Error
source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
source§impl From<ParseError> for Error
impl From<ParseError> for Error
source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
source§impl From<SetGlobalDefaultError> for Error
impl From<SetGlobalDefaultError> for Error
source§fn from(source: SetGlobalDefaultError) -> Self
fn from(source: SetGlobalDefaultError) -> Self
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