pub enum LoadState {
Fresh,
Loaded {
from: u64,
},
Corrupt,
TooNew {
found: u64,
},
}Expand description
How the settings were loaded.
Variants§
Fresh
No file yet.
Loaded
Read (and migrated if from is older than the current schema).
Corrupt
The file could not be read; it was moved aside to <name>.corrupt.
TooNew
The file is from a newer schema: values are readable, saves are skipped.
Trait Implementations§
impl Copy for LoadState
impl Eq for LoadState
impl StructuralPartialEq for LoadState
Auto Trait Implementations§
impl Freeze for LoadState
impl RefUnwindSafe for LoadState
impl Send for LoadState
impl Sync for LoadState
impl Unpin for LoadState
impl UnsafeUnpin for LoadState
impl UnwindSafe for LoadState
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