pub enum RevError {
Unknown(String),
Ambiguous(String),
BadSuffix {
spec: String,
detail: String,
},
NotACommit(String),
Backend(String),
}Expand description
Errors raised while resolving a revision string.
Variants§
Unknown(String)
The base token matched no ref and no object.
Ambiguous(String)
A short-hash prefix matched more than one object.
BadSuffix
A ~/^ suffix walked off the end of the commit graph.
NotACommit(String)
The base resolved but the suffix navigation hit a non-commit object (a tree/blob cannot have parents).
Backend(String)
Underlying ref / store failure.
Trait Implementations§
Source§impl Error for RevError
impl Error for RevError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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 Freeze for RevError
impl RefUnwindSafe for RevError
impl Send for RevError
impl Sync for RevError
impl Unpin for RevError
impl UnsafeUnpin for RevError
impl UnwindSafe for RevError
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