pub enum CommandNameError {
Empty,
ContainsSeparator,
InvalidCharacter,
NonUnicode,
}Expand description
Validation errors for command and executable names.
Variants§
Empty
The name was empty.
ContainsSeparator
The name contained a path separator.
InvalidCharacter
The name contained a control character.
NonUnicode
A path component could not be represented as Unicode.
Trait Implementations§
Source§impl Clone for CommandNameError
impl Clone for CommandNameError
Source§fn clone(&self) -> CommandNameError
fn clone(&self) -> CommandNameError
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 CommandNameError
impl Debug for CommandNameError
Source§impl Display for CommandNameError
impl Display for CommandNameError
Source§impl Error for CommandNameError
impl Error for CommandNameError
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 PartialEq for CommandNameError
impl PartialEq for CommandNameError
Source§fn eq(&self, other: &CommandNameError) -> bool
fn eq(&self, other: &CommandNameError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for CommandNameError
impl StructuralPartialEq for CommandNameError
Auto Trait Implementations§
impl Freeze for CommandNameError
impl RefUnwindSafe for CommandNameError
impl Send for CommandNameError
impl Sync for CommandNameError
impl Unpin for CommandNameError
impl UnsafeUnpin for CommandNameError
impl UnwindSafe for CommandNameError
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