pub enum SnapshotError {
NameMismatch {
expected: String,
actual: String,
},
UnknownNode(String),
UnknownSubgraph(String),
UnresolvableDeps(String, Vec<String>),
MissingFactory(String, String),
NameCollision {
name: String,
graph_path: String,
},
}Expand description
Errors from Graph::restore and Graph::from_snapshot.
Variants§
NameMismatch
UnknownNode(String)
UnknownSubgraph(String)
UnresolvableDeps(String, Vec<String>)
MissingFactory(String, String)
NameCollision
D279 (2026-05-22, E-ii.1): a state node in the snapshot collides
with an existing child mount name on the owner graph at decode
time. Raised by Pass 1’s pre-validation BEFORE any Core mutation
— prevents the orphan-NodeId leak that pre-D279 occurred when
Graph::state registered a NodeId before the namespace add
returned NameError::Collision. graph_path is the owner
graph’s tree-relative path (empty string for the root).
Trait Implementations§
Source§impl Debug for SnapshotError
impl Debug for SnapshotError
Source§impl Display for SnapshotError
impl Display for SnapshotError
Source§impl Error for SnapshotError
impl Error for SnapshotError
1.30.0 · 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 Freeze for SnapshotError
impl RefUnwindSafe for SnapshotError
impl Send for SnapshotError
impl Sync for SnapshotError
impl Unpin for SnapshotError
impl UnsafeUnpin for SnapshotError
impl UnwindSafe for SnapshotError
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