pub enum General {
Path(Path),
Handler(Handler),
Matcher(Matcher),
Utf8Error(Utf8Error),
IncorrectInput(IncorrectInput),
InputTerminated(InputTerminated),
IoError(Error),
}
Expand description
General error
Variants§
Path(Path)
Handler(Handler)
Matcher(Matcher)
Utf8Error(Utf8Error)
IncorrectInput(IncorrectInput)
InputTerminated(InputTerminated)
IoError(Error)
Trait Implementations§
Source§impl Error for General
impl Error for General
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()
Source§impl From<IncorrectInput> for General
impl From<IncorrectInput> for General
Source§fn from(entity: IncorrectInput) -> Self
fn from(entity: IncorrectInput) -> Self
Converts to this type from the input type.
Source§impl From<InputTerminated> for General
impl From<InputTerminated> for General
Source§fn from(entity: InputTerminated) -> Self
fn from(entity: InputTerminated) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for General
impl !RefUnwindSafe for General
impl Send for General
impl Sync for General
impl Unpin for General
impl !UnwindSafe for General
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