pub enum GlobalKeyValue {
Set(Value, ConfigSource),
Unset,
}Expand description
What reading a global key found.
Variants§
Set(Value, ConfigSource)
The key holds a value, shown with where it came from.
Unset
The key is accepted but holds nothing and has no default to show. A caller must report this as unset, never as an unknown key: the two are different answers and collapsing them tells the user a real setting does not exist.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GlobalKeyValue
impl RefUnwindSafe for GlobalKeyValue
impl Send for GlobalKeyValue
impl Sync for GlobalKeyValue
impl Unpin for GlobalKeyValue
impl UnsafeUnpin for GlobalKeyValue
impl UnwindSafe for GlobalKeyValue
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