pub enum MemRepoWriteError {
GixOpen {
path: String,
message: String,
},
NoMainBranch(String),
GitTree(String),
RefTransaction(String),
}Expand description
Errors raised while writing a mem config to mem-repo-git:__MEMSTEAD.
Variants§
GixOpen
Could not open <workspace_root>/mem-repo/.git/. Wraps the gix
error message; pre-flight via has_real_mem_repo_main to avoid
surfacing this from a workspace that is not mem-repo-backed.
NoMainBranch(String)
refs/heads/__MEMSTEAD is missing — workspace is not initialised.
Variant name retained for backward compatibility.
GitTree(String)
Generic git-tree write failure (object database error, ref edit rejected, etc.). The wrapped string surfaces the underlying gix error for operator log lines.
RefTransaction(String)
A commit_refs batch was rejected by gix-ref’s transaction
prepare phase — typically a MustExistAndMatch precondition
mismatch (the observed main tip moved between snapshot and
commit) or a MustNotExist violation on a branch the caller
thought it was creating fresh. The wrapped string surfaces the
underlying gix message for operator log lines.
Trait Implementations§
Source§impl Debug for MemRepoWriteError
impl Debug for MemRepoWriteError
Source§impl Display for MemRepoWriteError
impl Display for MemRepoWriteError
Source§impl Error for MemRepoWriteError
impl Error for MemRepoWriteError
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()
Source§impl From<MemRepoWriteError> for InstallError
impl From<MemRepoWriteError> for InstallError
Source§fn from(source: MemRepoWriteError) -> Self
fn from(source: MemRepoWriteError) -> Self
Auto Trait Implementations§
impl Freeze for MemRepoWriteError
impl RefUnwindSafe for MemRepoWriteError
impl Send for MemRepoWriteError
impl Sync for MemRepoWriteError
impl Unpin for MemRepoWriteError
impl UnsafeUnpin for MemRepoWriteError
impl UnwindSafe for MemRepoWriteError
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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> ErrorExt for T
impl<T> ErrorExt for T
impl<T> Fruit 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