pub enum WorkspaceSchemaLoadError {
Invalid {
path: PathBuf,
source: SchemaLoadError,
},
Io {
path: PathBuf,
source: Error,
},
CacheCollision {
name: String,
version: Version,
first: PathBuf,
second: PathBuf,
},
}Expand description
Errors raised while scanning workspace-level or cache schema directories.
Variants§
Invalid
A schema directory failed semantic or structural validation. The offending directory path is captured alongside the underlying loader error so operators can jump straight to the broken file.
Io
Filesystem error while iterating a schemas/ or .memstead.cache/schemas/ directory.
CacheCollision
Two distinct schema directories share the same <name>-<version>
cache key. Surfaces as SCHEMA_CACHE_COLLISION to MCP callers —
silent overwrite would mask a bug in the extraction pipeline.
Trait Implementations§
Source§impl Debug for WorkspaceSchemaLoadError
impl Debug for WorkspaceSchemaLoadError
Source§impl Display for WorkspaceSchemaLoadError
impl Display for WorkspaceSchemaLoadError
Source§impl Error for WorkspaceSchemaLoadError
impl Error for WorkspaceSchemaLoadError
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 !RefUnwindSafe for WorkspaceSchemaLoadError
impl !UnwindSafe for WorkspaceSchemaLoadError
impl Freeze for WorkspaceSchemaLoadError
impl Send for WorkspaceSchemaLoadError
impl Sync for WorkspaceSchemaLoadError
impl Unpin for WorkspaceSchemaLoadError
impl UnsafeUnpin for WorkspaceSchemaLoadError
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