pub struct LoadOrderLock {
pub reason: LockReason,
pub locked_at: String,
}Expand description
A profile-level load order lock.
When Profile::load_order_lock is Some(_), the entire mod order is
frozen: reorder attempts are refused by the UI message handler and
reorder buttons are disabled in the views. The user must explicitly
unlock the profile (or fork it with --unlock) to make changes.
Fields§
§reason: LockReason§locked_at: StringISO-8601 UTC timestamp captured at lock time (e.g. "2026-04-10T14:23:00Z").
Implementations§
Source§impl LoadOrderLock
impl LoadOrderLock
Sourcepub fn now(reason: LockReason) -> Self
pub fn now(reason: LockReason) -> Self
Construct a new lock with locked_at set to the current UTC time.
Trait Implementations§
Source§impl Clone for LoadOrderLock
impl Clone for LoadOrderLock
Source§fn clone(&self) -> LoadOrderLock
fn clone(&self) -> LoadOrderLock
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 LoadOrderLock
impl Debug for LoadOrderLock
Source§impl<'de> Deserialize<'de> for LoadOrderLock
impl<'de> Deserialize<'de> for LoadOrderLock
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for LoadOrderLock
impl PartialEq for LoadOrderLock
Source§fn eq(&self, other: &LoadOrderLock) -> bool
fn eq(&self, other: &LoadOrderLock) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for LoadOrderLock
impl Serialize for LoadOrderLock
impl Eq for LoadOrderLock
impl StructuralPartialEq for LoadOrderLock
Auto Trait Implementations§
impl Freeze for LoadOrderLock
impl RefUnwindSafe for LoadOrderLock
impl Send for LoadOrderLock
impl Sync for LoadOrderLock
impl Unpin for LoadOrderLock
impl UnsafeUnpin for LoadOrderLock
impl UnwindSafe for LoadOrderLock
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.