pub struct ExecTarget {
pub host: String,
pub source: TargetSource,
}Expand description
Identity of the host a single-host execution actually ran against.
Carried separately from crate::ssh::ExecutionOutput because the output knows
what happened and not where: the host is decided during argv parsing, long before
any channel is opened.
Fields§
§host: StringResolved VPS name.
source: TargetSourceHow that name was obtained.
Implementations§
Source§impl ExecTarget
impl ExecTarget
Sourcepub fn new(host: impl Into<String>, source: TargetSource) -> Self
pub fn new(host: impl Into<String>, source: TargetSource) -> Self
Builds a target from a resolved name and its provenance.
Trait Implementations§
Source§impl Clone for ExecTarget
impl Clone for ExecTarget
Source§fn clone(&self) -> ExecTarget
fn clone(&self) -> ExecTarget
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 moreSource§impl Debug for ExecTarget
impl Debug for ExecTarget
impl Eq for ExecTarget
Source§impl PartialEq for ExecTarget
impl PartialEq for ExecTarget
impl StructuralPartialEq for ExecTarget
Auto Trait Implementations§
impl Freeze for ExecTarget
impl RefUnwindSafe for ExecTarget
impl Send for ExecTarget
impl Sync for ExecTarget
impl Unpin for ExecTarget
impl UnsafeUnpin for ExecTarget
impl UnwindSafe for ExecTarget
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,
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.