pub enum Error {
NoExtractorOutput,
PoisonError(String),
Io(Error),
Parsing(String, Option<i32>, String, String),
Executing(Error),
Create(Error),
Decoding(Utf8Error),
NotFound(PathBuf),
NotSupportedPlatform,
Infallible(Infallible),
NotFoundEnvVar(String),
Other(String),
}
Expand description
Definition of shell profile
Variants§
NoExtractorOutput
Output of extractor isn’t found
PoisonError(String)
PoisonError error
Io(Error)
IO related error
Parsing(String, Option<i32>, String, String)
Happens if stdout has content, which isn’t possible to parse as json string.
Executing(Error)
Any error during attempt to execute extractor as target shell command
Create(Error)
Happens if by some reasons isn’t possible to create extractor in system temporary folder
Decoding(Utf8Error)
Will be dropped if attempt to decode stdout or stderr of shell child process is failed
NotFound(PathBuf)
Shell executable file doesn’t exist
NotSupportedPlatform
Target platform isn’t supported
Infallible(Infallible)
Happends on errors related converting paths to strings
NotFoundEnvVar(String)
Some environment variables are needed to detect specific paths on windows, like system path, path to program files etc. This error happens if neened variables aren’t found
Other(String)
Any other errors
Trait Implementations§
source§impl Error for Error
impl Error for Error
1.30.0 · 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()
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