pub enum TargetSource {
Argv,
ActiveMarker,
Selector,
}Expand description
Where the executing host came from, reported by ExecutionJson::host_source.
GAP-SSH-EXEC-ENVELOPE-002: the single-host envelope named no host at all, so a caller reading stdout could not tell a host typed in argv from one inherited from the on-disk active marker. Those two are the same bytes on the wire and wildly different in blast radius, and the distinction is exactly what an agent needs before it writes a systemd unit.
Variants§
Argv
The host name was supplied as a positional in this invocation.
ActiveMarker
The host came from the on-disk active marker under an explicit --use-active.
Selector
The host set came from --all, --hosts or --tags.
Implementations§
Source§impl TargetSource
impl TargetSource
Trait Implementations§
Source§impl Clone for TargetSource
impl Clone for TargetSource
Source§fn clone(&self) -> TargetSource
fn clone(&self) -> TargetSource
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TargetSource
Source§impl Debug for TargetSource
impl Debug for TargetSource
Source§impl Default for TargetSource
impl Default for TargetSource
Source§fn default() -> TargetSource
fn default() -> TargetSource
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TargetSource
impl<'de> Deserialize<'de> for TargetSource
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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
Compare self to
key and return true if they are equal.