Enum git2::ErrorCode [−][src]
pub enum ErrorCode {
Show variants
GenericError,
NotFound,
Exists,
Ambiguous,
BufSize,
User,
BareRepo,
UnbornBranch,
Unmerged,
NotFastForward,
InvalidSpec,
Conflict,
Locked,
Modified,
Auth,
Certificate,
Applied,
Peel,
Eof,
Invalid,
Uncommitted,
Directory,
MergeConflict,
HashsumMismatch,
IndexDirty,
ApplyFail,
}Expand description
An enumeration of possible errors that can happen when working with a git repository.
Variants
Expand description
Generic error
Expand description
Requested object could not be found
Expand description
Object exists preventing operation
Expand description
More than one object matches
Expand description
Output buffer too short to hold data
Expand description
User-generated error
Expand description
Operation not allowed on bare repository
Expand description
HEAD refers to branch with no commits
Expand description
Merge in progress prevented operation
Expand description
Reference was not fast-forwardable
Expand description
Name/ref spec was not in a valid format
Expand description
Checkout conflicts prevented operation
Expand description
Lock file prevented operation
Expand description
Reference value does not match expected
Expand description
Authentication error
Expand description
Server certificate is invalid
Expand description
Patch/merge has already been applied
Expand description
The requested peel operation is not possible
Expand description
Unexpected EOF
Expand description
Invalid operation or input
Expand description
Uncommitted changes in index prevented operation
Expand description
Operation was not valid for a directory
Expand description
A merge conflict exists and cannot continue
Expand description
Hashsum mismatch in object
Expand description
Unsaved changes in the index would be overwritten
Expand description
Patch application failed
Trait Implementations
impl Copy for ErrorCode[src]
impl Eq for ErrorCode[src]
impl StructuralEq for ErrorCode[src]
impl StructuralPartialEq for ErrorCode[src]
Auto Trait Implementations
impl RefUnwindSafe for ErrorCode
impl Send for ErrorCode
impl Sync for ErrorCode
impl Unpin for ErrorCode
impl UnwindSafe for ErrorCode
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more