pub enum CommandError {
Show 14 variants
EmptyProgram,
ProgramContainsNul,
ArgumentContainsNul,
EmptyWorkingDirectory,
WorkingDirectoryContainsNul,
WorkingDirectoryParentTraversal {
path: PathBuf,
},
EmptyEnvironmentName,
EnvironmentNameContainsEquals,
EnvironmentNameContainsNul,
EnvironmentValueContainsNul,
EmptyEnvironmentPattern,
EnvironmentPatternContainsNul,
EnvironmentPatternContainsEquals,
EnvironmentBaseTooPermissive {
required: EnvironmentBase,
supplied: EnvironmentBase,
},
}Expand description
Errors raised while constructing a portable command request.
Variants§
EmptyProgram
The command program was empty.
ProgramContainsNul
The command program contained a NUL character.
ArgumentContainsNul
A command argument contained a NUL character.
EmptyWorkingDirectory
The working-directory path was empty.
WorkingDirectoryContainsNul
The working-directory path contained a NUL character.
WorkingDirectoryParentTraversal
The working-directory path contained a parent traversal component.
EmptyEnvironmentName
An environment variable name was empty.
EnvironmentNameContainsEquals
An environment variable name contained =.
EnvironmentNameContainsNul
An environment variable name contained a NUL character.
EnvironmentValueContainsNul
An environment variable value contained a NUL character.
EmptyEnvironmentPattern
An environment-variable filter pattern was empty.
EnvironmentPatternContainsNul
An environment-variable filter pattern contained a NUL character.
EnvironmentPatternContainsEquals
An environment-variable filter pattern contained =.
EnvironmentBaseTooPermissive
The supplied environment snapshot is broader than this specification’s base.
Fields
required: EnvironmentBaseThe base requested by this specification.
supplied: EnvironmentBaseThe base represented by the supplied variables.
Trait Implementations§
Source§impl Clone for CommandError
impl Clone for CommandError
Source§fn clone(&self) -> CommandError
fn clone(&self) -> CommandError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CommandError
impl Debug for CommandError
Source§impl Display for CommandError
impl Display for CommandError
impl Eq for CommandError
Source§impl Error for CommandError
impl Error for CommandError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()