pub enum MemRepoConfigError {
GitdirNotFound(String),
GixOpen(String),
NoMainBranch,
ConfigNotFound(String),
GitTree(String),
NotUtf8(String),
Schema(ConfigError),
}Expand description
Errors raised while reading a mem config from mem-repo-git:__MEMSTEAD.
Variants§
GitdirNotFound(String)
The workspace is not a real mem-repo workspace — mem-repo/.git/
is missing. Caller decides whether to treat as fatal (post-cutover
invariant) or fall back to legacy disk shape.
GixOpen(String)
mem-repo/.git/ exists but cannot be opened (corrupt repo, IO
failure under the object database). The wrapped message names the
underlying gix error.
NoMainBranch
__MEMSTEAD registry-class branch ref is missing — empty-bare-repo
stub state, or a workspace that was never initialised. Variant
name retained as NoMainBranch for backward-compat with existing
matchers; semantically it now means “no __MEMSTEAD ref”.
ConfigNotFound(String)
__MEMSTEAD:mems/<mem>/config.json does not exist in the tree.
Either the mem was never registered or the config blob was
deleted.
GitTree(String)
Generic gix-tree read failure (object missing, corrupt tree, IO underneath the object database).
NotUtf8(String)
Blob bytes are not valid UTF-8.
Schema(ConfigError)
Parse / validation failure surfaced from the shared schema pipeline. Wrapped so callers can branch on the inner kind if needed.
Trait Implementations§
Source§impl Debug for MemRepoConfigError
impl Debug for MemRepoConfigError
Source§impl Display for MemRepoConfigError
impl Display for MemRepoConfigError
Source§impl Error for MemRepoConfigError
impl Error for MemRepoConfigError
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<ConfigError> for MemRepoConfigError
impl From<ConfigError> for MemRepoConfigError
Source§fn from(source: ConfigError) -> Self
fn from(source: ConfigError) -> Self
Auto Trait Implementations§
impl !RefUnwindSafe for MemRepoConfigError
impl !UnwindSafe for MemRepoConfigError
impl Freeze for MemRepoConfigError
impl Send for MemRepoConfigError
impl Sync for MemRepoConfigError
impl Unpin for MemRepoConfigError
impl UnsafeUnpin for MemRepoConfigError
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