pub struct RemoteConfig {
pub host: String,
pub workdir: String,
pub shell: Vec<String>,
pub connect_timeout_secs: u64,
pub server_alive_interval_secs: u64,
}Fields§
§host: StringSSH destination: an alias from ~/.ssh/config, or user@host.
Authentication, jump hosts, ports and keys all come from the user’s
own OpenSSH configuration; FarHand never handles credentials itself.
workdir: StringDirectory relative paths resolve against and commands start in.
Absolute, or ~ / ~/... for the remote user’s home.
shell: Vec<String>Shell that runs every command, as argv. The command text is appended
as one final argument, so the last element must accept a script
(-c, -lc, …).
connect_timeout_secs: u64§server_alive_interval_secs: u64Passed to ssh as ServerAliveInterval; keeps NAT tables warm.
Trait Implementations§
Source§impl Clone for RemoteConfig
impl Clone for RemoteConfig
Source§fn clone(&self) -> RemoteConfig
fn clone(&self) -> RemoteConfig
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 RemoteConfig
impl Debug for RemoteConfig
Source§impl<'de> Deserialize<'de> for RemoteConfig
impl<'de> Deserialize<'de> for RemoteConfig
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
Auto Trait Implementations§
impl Freeze for RemoteConfig
impl RefUnwindSafe for RemoteConfig
impl Send for RemoteConfig
impl Sync for RemoteConfig
impl Unpin for RemoteConfig
impl UnsafeUnpin for RemoteConfig
impl UnwindSafe for RemoteConfig
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