pub enum Error {
Show 27 variants
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),
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
UnbornHeadsHaveNoRefLog
Planned
Fields
dependency: &'static str
MissingRefLog
PriorCheckoutOutOfRange
RefLogEntryOutOfRange
AncestorOutOfRange
ParentOutOfRange
IndexLookup
FindHead(Error)
Index(Error)
RevWalkIterInit(Error)
RevWalkAllReferences(Error)
NoRegexMatch
NoRegexMatchAllRefs
AmbiguousRefAndObject
IdFromHex(Error)
FindReference(Error)
FindObject(Error)
PeelToKind(Error)
ObjectKind
Parse(Error)
PrefixNotFound
Fields
prefix: Prefix
AmbiguousPrefix
PathNotFound
Multi
Fields
Traverse(Error)
SingleNotFound
Trait Implementations
sourceimpl Error for Error
impl Error for Error
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
1.0.0 · sourcefn 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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
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