pub enum LoadOutcome {
FromDefault(Config),
FromFile(Config),
}
Expand description
The result of loading a configuration, indicating whether the config was loaded from a file or constructed from a default fallback.
Use LoadOutcome::used_default
to determine which case occurred,
or extract the inner config using LoadOutcome::into_inner
.
Variants§
Implementations§
Source§impl LoadOutcome
impl LoadOutcome
Trait Implementations§
Source§impl Clone for LoadOutcome
impl Clone for LoadOutcome
Source§fn clone(&self) -> LoadOutcome
fn clone(&self) -> LoadOutcome
Returns a copy of the value. Read more
1.0.0 · 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 LoadOutcome
impl Debug for LoadOutcome
Source§impl PartialEq for LoadOutcome
impl PartialEq for LoadOutcome
impl StructuralPartialEq for LoadOutcome
Auto Trait Implementations§
impl Freeze for LoadOutcome
impl RefUnwindSafe for LoadOutcome
impl Send for LoadOutcome
impl Sync for LoadOutcome
impl Unpin for LoadOutcome
impl UnwindSafe for LoadOutcome
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