Enum RenameError
pub enum RenameError {
NotFound(String),
InvalidName(String),
Reserved(String),
PostCondition(String),
}Expand description
Why a rename_with_cascade did not complete. Unlike CascadeError there
is no Refused variant: rename rewrites HARD references to follow the new
name rather than refusing, so the only failures are bad inputs and the
post-condition bug-guard.
Variants§
NotFound(String)
The source alias does not exist.
InvalidName(String)
The new alias is unusable: fails validate_alias_key, collides with an
existing entry, or equals the current name. Carries the reason.
Reserved(String)
The source or target alias is reserved (the default agent).
PostCondition(String)
Bug guard: rewrite drifted from find_all_references and left a dangling
reference to the OLD alias. The config WAS mutated (key swapped + refs
rewritten) — the caller must NOT persist it. Unreachable while rewrite and
the collect_* walks mirror each other (same sites, same trim split).
Trait Implementations§
Source§impl Debug for RenameError
impl Debug for RenameError
Source§impl Display for RenameError
impl Display for RenameError
Source§impl Error for RenameError
impl Error for RenameError
1.30.0 · §fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · §fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for RenameError
impl RefUnwindSafe for RenameError
impl Send for RenameError
impl Sync for RenameError
impl Unpin for RenameError
impl UnsafeUnpin for RenameError
impl UnwindSafe for RenameError
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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