pub enum Error {
Show 31 variants
Malformed,
UnbornHeadsHaveNoRefLog,
Planned {
dependency: &'static str,
},
MissingRefLog {
reference: BString,
action: &'static str,
},
PriorCheckoutOutOfRange {
desired: usize,
available: usize,
},
RefLogEntryOutOfRange {
reference: Reference,
desired: usize,
available: usize,
},
AncestorOutOfRange {
oid: Prefix,
desired: usize,
available: usize,
},
ParentOutOfRange {
oid: Prefix,
desired: usize,
available: usize,
},
IndexLookup {
desired_path: BString,
desired_stage: Stage,
stage_hint: Option<Stage>,
exists: bool,
},
FindHead(Error),
Index(Error),
RevWalkIterInit(Error),
RevWalkAllReferences(Error),
InvalidRegex(Error),
NoRegexMatch {
regex: BString,
oid: Prefix,
commits_searched: usize,
},
NoRegexMatchAllRefs {
regex: BString,
commits_searched: usize,
},
AmbiguousRefAndObject {
prefix: Prefix,
reference: Reference,
},
IdFromHex(Error),
FindReference(Error),
FindObject(Error),
LookupPrefix(Error),
PeelToKind(Error),
ObjectKind {
oid: Prefix,
actual: Kind,
expected: Kind,
},
Parse(Error),
PrefixNotFound {
prefix: Prefix,
},
AmbiguousPrefix {
prefix: Prefix,
info: Vec<(Prefix, CandidateInfo)>,
},
PathNotFound {
object: Prefix,
tree: Prefix,
path: BString,
},
Multi {
current: Box<dyn Error + Send + Sync + 'static>,
next: Option<Box<dyn Error + Send + Sync + 'static>>,
},
Traverse(Error),
Walk(Error),
SingleNotFound,
}
Available on crate feature
revision
only.Expand description
The error returned by crate::Repository::rev_parse()
.
Variants§
Malformed
UnbornHeadsHaveNoRefLog
Planned
MissingRefLog
PriorCheckoutOutOfRange
RefLogEntryOutOfRange
AncestorOutOfRange
ParentOutOfRange
IndexLookup
FindHead(Error)
Index(Error)
RevWalkIterInit(Error)
RevWalkAllReferences(Error)
InvalidRegex(Error)
Available on crate feature
revparse-regex
only.NoRegexMatch
NoRegexMatchAllRefs
AmbiguousRefAndObject
Fields
IdFromHex(Error)
FindReference(Error)
FindObject(Error)
LookupPrefix(Error)
PeelToKind(Error)
ObjectKind
Parse(Error)
PrefixNotFound
AmbiguousPrefix
PathNotFound
Multi
Fields
Traverse(Error)
Walk(Error)
SingleNotFound
Trait Implementations§
source§impl Error for Error
impl Error for Error
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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()
Auto Trait Implementations§
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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