pub enum CommitLedgerError {
Spawn {
repository: PathBuf,
source: Error,
},
Git {
repository: PathBuf,
stderr: String,
},
Output {
repository: PathBuf,
line: String,
},
Read {
path: PathBuf,
source: Error,
},
Report {
repository: PathBuf,
line: String,
},
Export {
repository: PathBuf,
source: ExportError,
},
Rejected {
repository: PathBuf,
stderr: String,
},
Incomplete {
repository: PathBuf,
detail: String,
},
Moved {
repository: PathBuf,
reference: String,
},
Quarantine {
path: PathBuf,
source: Error,
},
}Expand description
Why the commits of a subagent could not be listed.
Variants§
Spawn
git could not be run.
Git
git failed.
Output
git printed a line that is not what the query asked for.
Read
A worktree’s HEAD could not be read.
Report
A subagent’s repository reported a ref or object id that is malformed or lies outside the subagent’s branch namespace.
Export
Git could not run in the subagent’s sandbox, failed there, or did not finish in time.
Rejected
The pack the subagent’s sandbox sent was refused: an object that is not what it claims to be, a broken link, or more than the import allows.
Incomplete
A tip the subagent reported is missing after indexing, is no commit, or reaches objects that are not there.
Fields
Moved
A ref of the main repository moved while the import was under way.
Quarantine
The directory a pack is indexed in could not be set up, or the indexed pack could not be moved into the main store.
Trait Implementations§
Source§impl Debug for CommitLedgerError
impl Debug for CommitLedgerError
Source§impl Display for CommitLedgerError
impl Display for CommitLedgerError
Source§impl Error for CommitLedgerError
impl Error for CommitLedgerError
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()
Source§impl From<CommitLedgerError> for SubagentGrantError
impl From<CommitLedgerError> for SubagentGrantError
Source§fn from(source: CommitLedgerError) -> Self
fn from(source: CommitLedgerError) -> Self
Auto Trait Implementations§
impl !RefUnwindSafe for CommitLedgerError
impl !UnwindSafe for CommitLedgerError
impl Forget for CommitLedgerError
impl Freeze for CommitLedgerError
impl Move for CommitLedgerError
impl Send for CommitLedgerError
impl Sync for CommitLedgerError
impl Unpin for CommitLedgerError
impl UnsafeUnpin for CommitLedgerError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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