pub enum ProbeError {
Open(Arc<str>),
Read(Arc<str>),
Submodules(Arc<str>),
Ancestry(Arc<str>),
PatchEquivalence(Arc<str>),
AheadBehind(Arc<str>),
Base(Arc<str>),
Status(Arc<str>),
Unpushed(Arc<str>),
IgnoredDirectories(Arc<str>),
}Expand description
Error from a git read, cheap to clone because the whole state table is cloned every frame. A shared trait object was rejected: it gives no discriminant to branch on and nothing to serialise, and nothing in this crate reads a source chain.
Variants§
Open(Arc<str>)
The path could not be opened as a git repository.
Read(Arc<str>)
An open repository’s HEAD could not be read.
Submodules(Arc<str>)
A .gitmodules file existed but would not read or parse.
Ancestry(Arc<str>)
The ancestry check between a branch and the default branch could not run: a missing or corrupt commit, never a stand-in for “not an ancestor”.
PatchEquivalence(Arc<str>)
The patch-equivalence check could not run: a missing or corrupt commit or tree, never a stand-in for “not equivalent”.
AheadBehind(Arc<str>)
The ahead/behind comparison against a live upstream could not run: a missing or corrupt commit, never a stand-in for zero.
Base(Arc<str>)
The behind-the-default-branch comparison could not run: a missing or corrupt commit, never a stand-in for zero.
Status(Arc<str>)
Phase C’s status read could not run: a platform that would not build, or an iterator that errored partway through.
Unpushed(Arc<str>)
The unpushed-commit count behind a delete confirm gate could not run: refs that
would not list, or a missing or corrupt commit, never a stand-in for zero.
IgnoredDirectories(Arc<str>)
delete’s phase 1 dirwalk enumerating ignored directories could not run: an index
that would not load, or a walk that errored partway through, never a stand-in for
“nothing is ignored”.
Trait Implementations§
Source§impl Clone for ProbeError
impl Clone for ProbeError
Source§fn clone(&self) -> ProbeError
fn clone(&self) -> ProbeError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ProbeError
impl Debug for ProbeError
Source§impl Display for ProbeError
impl Display for ProbeError
Source§impl Error for ProbeError
impl Error for ProbeError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for ProbeError
impl RefUnwindSafe for ProbeError
impl Send for ProbeError
impl Sync for ProbeError
impl Unpin for ProbeError
impl UnsafeUnpin for ProbeError
impl UnwindSafe for ProbeError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ErrorExt for T
impl<T> ErrorExt for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more