pub enum Error {
Show 29 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),
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),
SingleNotFound,
}
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)
NoRegexMatch
NoRegexMatchAllRefs
AmbiguousRefAndObject
Fields
IdFromHex(Error)
FindReference(Error)
FindObject(Error)
LookupPrefix(Error)
PeelToKind(Error)
ObjectKind
Parse(Error)
PrefixNotFound
AmbiguousPrefix
PathNotFound
Multi
Fields
Traverse(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§
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere T: Display,
§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a [
CompactString
]. Read more