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
Generic error
Requested object could not be found
Object exists preventing operation
More than one object matches
Output buffer too short to hold data
User-generated error
Operation not allowed on bare repository
HEAD refers to branch with no commits
Merge in progress prevented operation
Reference was not fast-forwardable
Name/ref spec was not in a valid format
Checkout conflicts prevented operation
Lock file prevented operation
Reference value does not match expected
Authentication error
Server certificate is invalid
Patch/merge has already been applied
The requested peel operation is not possible
Unexpected EOF
Invalid operation or input
Uncommitted changes in index prevented operation
Operation was not valid for a directory
A merge conflict exists and cannot continue
Hashsum mismatch in object
Unsaved changes in the index would be overwritten
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 = T
The 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