pub enum ConfigLoadOutcome {
Missing,
Current(Config),
Legacy(Config),
}Expand description
Outcome of Config::load_for_init — the one place in the codebase
allowed to see a legacy config as something other than a hard failure.
Variants§
Missing
No config file exists yet at the resolved path — a fresh install.
Current(Config)
A config file in the current credential-storage format.
Legacy(Config)
A config file predating the credential-storage format marker (no
credential_store_version field). Carries the parsed config so
init can still inspect its other fields if useful, but its
credential-bearing fields must not be trusted for keychain access.
Auto Trait Implementations§
impl Freeze for ConfigLoadOutcome
impl RefUnwindSafe for ConfigLoadOutcome
impl Send for ConfigLoadOutcome
impl Sync for ConfigLoadOutcome
impl Unpin for ConfigLoadOutcome
impl UnsafeUnpin for ConfigLoadOutcome
impl UnwindSafe for ConfigLoadOutcome
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