Enum git_stree::AdditionError
source · [−]pub enum AdditionError {
AddError(SubtreeAddError),
WorkTreeDirty,
WriteConfig(String),
NoUpstream,
StagingError(StagingError),
InvalidVersion(String),
Failure(String, i32),
}
Expand description
Failed adding a new subtree to a repository fails
Variants
AddError(SubtreeAddError)
WorkTreeDirty
WriteConfig(String)
NoUpstream
StagingError(StagingError)
InvalidVersion(String)
Failure(String, i32)
Trait Implementations
sourceimpl Debug for AdditionError
impl Debug for AdditionError
sourceimpl Display for AdditionError
impl Display for AdditionError
sourceimpl Error for AdditionError
impl Error for AdditionError
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>
🔬 This is a nightly-only experimental API. (
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
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl From<AdditionError> for PosixError
impl From<AdditionError> for PosixError
sourcefn from(err: AdditionError) -> Self
fn from(err: AdditionError) -> Self
Converts to this type from the input type.
sourceimpl From<ConfigSetError> for AdditionError
impl From<ConfigSetError> for AdditionError
sourcefn from(err: ConfigSetError) -> Self
fn from(err: ConfigSetError) -> Self
Converts to this type from the input type.
sourceimpl From<StagingError> for AdditionError
impl From<StagingError> for AdditionError
sourcefn from(source: StagingError) -> Self
fn from(source: StagingError) -> Self
Converts to this type from the input type.
sourceimpl From<SubtreeAddError> for AdditionError
impl From<SubtreeAddError> for AdditionError
sourcefn from(source: SubtreeAddError) -> Self
fn from(source: SubtreeAddError) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<AdditionError> for AdditionError
impl PartialEq<AdditionError> for AdditionError
sourcefn eq(&self, other: &AdditionError) -> bool
fn eq(&self, other: &AdditionError) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &AdditionError) -> bool
fn ne(&self, other: &AdditionError) -> bool
This method tests for !=
.
impl StructuralPartialEq for AdditionError
Auto Trait Implementations
impl RefUnwindSafe for AdditionError
impl Send for AdditionError
impl Sync for AdditionError
impl Unpin for AdditionError
impl UnwindSafe for AdditionError
Blanket Implementations
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