pub struct Host {
pub name: String,
pub target: String,
pub socket: PathBuf,
pub tmux_socket: String,
pub max_running: u32,
pub default_cwd: Option<String>,
pub keep_days: u32,
pub max_log_bytes: u64,
pub max_job_secs: u64,
}Expand description
A configured host, after name-derived defaults have been applied.
Every field is resolved here so no downstream code has to know a default:
socket is ~-expanded because it is handed to ssh -S, which does not
expand it.
Fields§
§name: StringThe config section name, and the handle the user passes to --host.
target: StringThe ssh target. Defaults to name.
socket: PathBufcoop’s private ControlPath. Everything else on the machine uses the
default ~/.ssh/control/... and so cannot contend with it.
tmux_socket: Stringtmux -L <this>: a private server, invisible to the user’s tmux ls.
max_running: u32Warn past this count; never block.
default_cwd: Option<String>Where run starts, unless --cwd. None means the remote $HOME.
keep_days: u32Prune horizon for done jobs.
max_log_bytes: u64Bytes of log kept per job; the rest is discarded and flagged.
max_job_secs: u64Maximum remote runtime in seconds; zero means unbounded.
Trait Implementations§
impl Eq for Host
impl StructuralPartialEq for Host
Auto Trait Implementations§
impl Freeze for Host
impl RefUnwindSafe for Host
impl Send for Host
impl Sync for Host
impl Unpin for Host
impl UnsafeUnpin for Host
impl UnwindSafe for Host
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.