Enum git_config::file::GitConfigError
source · [−]pub enum GitConfigError<'a> {
SectionDoesNotExist(SectionHeaderName<'a>),
SubSectionDoesNotExist(Option<&'a str>),
KeyDoesNotExist,
FailedConversion,
}
Expand description
All possible error types that may occur from interacting with
GitConfig
.
Variants
SectionDoesNotExist(SectionHeaderName<'a>)
The requested section does not exist.
SubSectionDoesNotExist(Option<&'a str>)
The requested subsection does not exist.
KeyDoesNotExist
The key does not exist in the requested section.
FailedConversion
The conversion into the provided type for methods such as
GitConfig::value
failed.
Trait Implementations
sourceimpl<'a> Clone for GitConfigError<'a>
impl<'a> Clone for GitConfigError<'a>
sourcefn clone(&self) -> GitConfigError<'a>
fn clone(&self) -> GitConfigError<'a>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<'a> Debug for GitConfigError<'a>
impl<'a> Debug for GitConfigError<'a>
sourceimpl Display for GitConfigError<'_>
impl Display for GitConfigError<'_>
sourceimpl Error for GitConfigError<'_>
impl Error for GitConfigError<'_>
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl<'a> Hash for GitConfigError<'a>
impl<'a> Hash for GitConfigError<'a>
sourceimpl<'a> Ord for GitConfigError<'a>
impl<'a> Ord for GitConfigError<'a>
sourceimpl<'a> PartialEq<GitConfigError<'a>> for GitConfigError<'a>
impl<'a> PartialEq<GitConfigError<'a>> for GitConfigError<'a>
sourcefn eq(&self, other: &GitConfigError<'a>) -> bool
fn eq(&self, other: &GitConfigError<'a>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &GitConfigError<'a>) -> bool
fn ne(&self, other: &GitConfigError<'a>) -> bool
This method tests for !=
.
sourceimpl<'a> PartialOrd<GitConfigError<'a>> for GitConfigError<'a>
impl<'a> PartialOrd<GitConfigError<'a>> for GitConfigError<'a>
sourcefn partial_cmp(&self, other: &GitConfigError<'a>) -> Option<Ordering>
fn partial_cmp(&self, other: &GitConfigError<'a>) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl<'a> Eq for GitConfigError<'a>
impl<'a> StructuralEq for GitConfigError<'a>
impl<'a> StructuralPartialEq for GitConfigError<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for GitConfigError<'a>
impl<'a> Send for GitConfigError<'a>
impl<'a> Sync for GitConfigError<'a>
impl<'a> Unpin for GitConfigError<'a>
impl<'a> UnwindSafe for GitConfigError<'a>
Blanket Implementations
impl<T> AsFail for T where
T: Fail,
impl<T> AsFail for T where
T: Fail,
fn as_fail(&self) -> &(dyn Fail + 'static)
fn as_fail(&self) -> &(dyn Fail + 'static)
Converts a reference to Self
into a dynamic trait object of Fail
.
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<E> Fail for E where
E: 'static + Error + Send + Sync,
impl<E> Fail for E where
E: 'static + Error + Send + Sync,
fn cause(&self) -> Option<&(dyn Fail + 'static)>
fn cause(&self) -> Option<&(dyn Fail + 'static)>
Returns a reference to the underlying cause of this failure, if it is an error that wraps other errors. Read more
fn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the Backtrace
carried by this failure, if it
carries one. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more