pub enum TargetSource {
Argv,
Dsn,
Selector,
Config,
}Expand description
Where the destination of this invocation was decided.
A closed domain, because a caller reading it back has to be able to tell “I chose this” from “something chose it for me” without a second lookup.
Variants§
Argv
Written on the call, as a profile name.
Dsn
Written on the call, as one text carrying the whole destination.
Selector
Written on the call, as a rule that chooses several destinations at once.
--all-profiles used to report config, which read as “something chose
this for me” about a call that had said which destinations it wanted.
The distinction this domain exists to make was the one it got wrong: the
caller was explicit, and about more than one destination, and the answer
described them as inherited.
Config
Inherited from the stored default, and named by nobody on the call.
Trait Implementations§
Source§impl Clone for TargetSource
impl Clone for TargetSource
impl Copy for TargetSource
Source§impl Debug for TargetSource
impl Debug for TargetSource
impl Eq for TargetSource
Source§impl PartialEq for TargetSource
impl PartialEq for TargetSource
Source§impl Serialize for TargetSource
impl Serialize for TargetSource
impl StructuralPartialEq for TargetSource
Auto Trait Implementations§
impl Freeze for TargetSource
impl RefUnwindSafe for TargetSource
impl Send for TargetSource
impl Sync for TargetSource
impl Unpin for TargetSource
impl UnsafeUnpin for TargetSource
impl UnwindSafe for TargetSource
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.