pub enum ReorderError {
ProfileLocked {
reason: LockReason,
},
ModPinned {
mod_id: String,
reason: LockReason,
},
ModNotFound {
mod_id: String,
},
AdjacentPinned {
neighbor_id: String,
reason: LockReason,
},
AtBoundary,
}Expand description
Why try_reorder refused to move a mod. Callers render these into
status messages / CLI errors as they see fit — the enum carries enough
structure to explain why without string-matching.
Variants§
ProfileLocked
The whole profile is locked (Wabbajack/Collection/TomlImport/Manual).
Fields
§
reason: LockReasonModPinned
The target mod itself carries a per-mod pin.
ModNotFound
The mod_id does not exist in profile.mods.
AdjacentPinned
The swap partner (one step up/down) is pinned — moving would shift it, violating its per-mod pin contract.
AtBoundary
The mod is already at the top/bottom of the list.
Trait Implementations§
Source§impl Clone for ReorderError
impl Clone for ReorderError
Source§fn clone(&self) -> ReorderError
fn clone(&self) -> ReorderError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ReorderError
impl Debug for ReorderError
Source§impl PartialEq for ReorderError
impl PartialEq for ReorderError
Source§fn eq(&self, other: &ReorderError) -> bool
fn eq(&self, other: &ReorderError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ReorderError
impl StructuralPartialEq for ReorderError
Auto Trait Implementations§
impl Freeze for ReorderError
impl RefUnwindSafe for ReorderError
impl Send for ReorderError
impl Sync for ReorderError
impl Unpin for ReorderError
impl UnsafeUnpin for ReorderError
impl UnwindSafe for ReorderError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.