#[non_exhaustive]pub enum HelperValueError {
RelativeProgram {
path: PathBuf,
},
NonUnicodeProgram {
path: PathBuf,
},
LineBreak {
word: String,
},
}Expand description
Why helper_config_value cannot express a helper command as a
credential.helper value.
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.
RelativeProgram
The program path is relative. Git expands a value that does not start
with an absolute path to git credential-<value>.
NonUnicodeProgram
The program path is not valid Unicode, so it cannot be stored in config.
LineBreak
A word contains a line feed, which an escaped config value cannot carry through shell word splitting.
Trait Implementations§
Source§impl Clone for HelperValueError
impl Clone for HelperValueError
Source§impl Debug for HelperValueError
impl Debug for HelperValueError
Source§impl Display for HelperValueError
impl Display for HelperValueError
impl Eq for HelperValueError
Source§impl Error for HelperValueError
impl Error for HelperValueError
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 HelperValueError
impl PartialEq for HelperValueError
impl StructuralPartialEq for HelperValueError
Auto Trait Implementations§
impl Forget for HelperValueError
impl Freeze for HelperValueError
impl RefUnwindSafe for HelperValueError
impl Send for HelperValueError
impl Sync for HelperValueError
impl Unpin for HelperValueError
impl UnsafeUnpin for HelperValueError
impl UnwindSafe for HelperValueError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.