pub enum ErrorKind {
LineParsing,
ExpressionParsing(ParseError<ConditionParsingError>),
ConflictingCondition(InvalidChangeError),
InvalidCharacterInEventName(char),
NoEvent,
SubheaderWithoutHeader,
}
Expand description
Represents the kinds of errors that can occur when parsing a line.
Variants§
LineParsing
Indicates an error occurred while parsing the line.
ExpressionParsing(ParseError<ConditionParsingError>)
Indicates an error occurred while parsing an expression.
ConflictingCondition(InvalidChangeError)
Indicates conflicting conditions were encountered.
InvalidCharacterInEventName(char)
Indicates an invalid character was encountered while parsing the event name.
NoEvent
Indicates no event was specified.
SubheaderWithoutHeader
Indicates a subheader was encountered without a corresponding header.
Trait Implementations§
Source§impl Error for ErrorKind
impl Error for ErrorKind
1.30.0 · 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()
impl Copy for ErrorKind
Auto Trait Implementations§
impl Freeze for ErrorKind
impl RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl UnwindSafe for ErrorKind
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