pub enum Error {
Io(Error),
CurrentExeHasNoParent,
UnknownProgramName(String),
Scope(Error),
SidecarNotAllowed(PathBuf),
ProgramNotAllowed(PathBuf),
UnknownEncoding(String),
Json(Error),
Utf8(FromUtf8Error),
}Expand description
Errors returned by the shell plugin.
Variants§
Io(Error)
I/O error, usually raised when spawning a process or reading its output.
CurrentExeHasNoParent
The path of the current executable has no parent directory, so the path of a sidecar program could not be resolved.
UnknownProgramName(String)
The string does not match any of the known programs
accepted by the deprecated open API.
Scope(Error)
The command is not allowed by the configured shell scope.
SidecarNotAllowed(PathBuf)
Sidecar not allowed by the configuration.
ProgramNotAllowed(PathBuf)
Program not allowed by the scope.
UnknownEncoding(String)
The encoding spawn option is neither raw nor a label of a known character encoding.
Json(Error)
JSON error.
Utf8(FromUtf8Error)
Utf8 error.
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)>
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<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.
Auto Trait Implementations§
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error
impl Freeze for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin 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