pub enum Error {
Show 15 variants
IoError {
source: Error,
},
Utf8Error {
source: Utf8Error,
},
FromUtf8Error {
source: FromUtf8Error,
},
TracingFilterError {
source: ParseError,
},
TracingSubscriberError {
source: SetGlobalDefaultError,
},
CodespanReportingError {
source: Error,
},
InvalidIdentifierError {
input: String,
},
InvalidLanguageTagError {
input: String,
},
InvalidNodeKind {
rule: String,
got: String,
},
UnexpectedNodeKind {
rule: String,
expected: String,
got: String,
span: Span,
},
MissingNodeKind {
rule: String,
expected: String,
},
MissingNodeVariable {
rule: String,
expected_name: String,
expected_kind: String,
},
InvalidValueForType {
value: String,
type_name: String,
},
ModuleFileNotFound {
name: String,
},
ModuleParseError {
rule: Option<String>,
node_name: String,
span: Span,
},
}
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
Fields
§
source: FromUtf8Error
An error was signaled by the standard string conversion functions.
TracingFilterError
Fields
§
source: ParseError
TracingSubscriberError
Fields
§
source: SetGlobalDefaultError
CodespanReportingError
InvalidIdentifierError
InvalidLanguageTagError
InvalidNodeKind
UnexpectedNodeKind
MissingNodeKind
MissingNodeVariable
InvalidValueForType
ModuleFileNotFound
ModuleParseError
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<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.
Auto Trait Implementations§
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