#[non_exhaustive]pub enum LaunchError {
NoProgram,
NotFound {
program: String,
},
PermissionDenied {
program: String,
},
NoExecFormat {
program: String,
},
InvalidKey {
key: String,
source: KeyNameError,
},
Guard(GuardError),
CommandLine(CmdLineError),
Io {
program: String,
source: Error,
},
}Expand description
A launch that did not happen.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NoProgram
No program was given.
NotFound
The program does not exist on PATH.
PermissionDenied
The program exists but is not executable by this user.
NoExecFormat
The file exists and is executable but is not a program image.
Almost always a script whose shebang line is missing, misspelled, or carries a CRLF line ending that makes the interpreter path unresolvable.
InvalidKey
A secret’s name is not usable as an environment variable.
Guard(GuardError)
A secret’s name is one the loader or a language runtime interprets.
CommandLine(CmdLineError)
An argument cannot be carried through cmd.exe to a batch shim.
Io
The launch failed for a reason the operating system reported.
Implementations§
Trait Implementations§
Source§impl Debug for LaunchError
impl Debug for LaunchError
Source§impl Display for LaunchError
impl Display for LaunchError
Source§impl Error for LaunchError
impl Error for LaunchError
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<CmdLineError> for LaunchError
impl From<CmdLineError> for LaunchError
Source§fn from(source: CmdLineError) -> Self
fn from(source: CmdLineError) -> Self
Converts to this type from the input type.
Source§impl From<GuardError> for LaunchError
impl From<GuardError> for LaunchError
Source§fn from(source: GuardError) -> Self
fn from(source: GuardError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for LaunchError
impl !UnwindSafe for LaunchError
impl Freeze for LaunchError
impl Send for LaunchError
impl Sync for LaunchError
impl Unpin for LaunchError
impl UnsafeUnpin for LaunchError
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