#[non_exhaustive]pub enum CmdLineError {
LineBreak {
index: usize,
},
Nul {
index: usize,
},
ScriptPath,
}Expand description
An argument that cannot be carried through cmd.exe at all.
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.
LineBreak
The argument contained a carriage return or line feed.
Both terminate a cmd.exe command line. There is no quoting or escape
that survives, so the argument is refused rather than truncated.
Nul
The argument contained a NUL, which no Windows API accepts.
ScriptPath
The resolved script path cannot be quoted unambiguously.
A Windows file name cannot contain ", and one ending in \ would
escape the closing quote of its own quote pair.
Trait Implementations§
Source§impl Clone for CmdLineError
impl Clone for CmdLineError
Source§fn clone(&self) -> CmdLineError
fn clone(&self) -> CmdLineError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CmdLineError
impl Debug for CmdLineError
Source§impl Display for CmdLineError
impl Display for CmdLineError
impl Eq for CmdLineError
Source§impl Error for CmdLineError
impl Error for CmdLineError
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<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 PartialEq for CmdLineError
impl PartialEq for CmdLineError
impl StructuralPartialEq for CmdLineError
Auto Trait Implementations§
impl Freeze for CmdLineError
impl RefUnwindSafe for CmdLineError
impl Send for CmdLineError
impl Sync for CmdLineError
impl Unpin for CmdLineError
impl UnsafeUnpin for CmdLineError
impl UnwindSafe for CmdLineError
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