pub struct SshContext<'a> {
pub alias: &'a str,
pub config_path: &'a Path,
pub askpass: Option<&'a str>,
pub session_password: Option<&'a str>,
pub bw_session: Option<&'a str>,
pub has_tunnel: bool,
pub trust_new_host_key: bool,
pub env: &'a Env,
}Expand description
Common SSH connection context passed to remote operations.
Fields§
§alias: &'a str§config_path: &'a Path§askpass: Option<&'a str>§session_password: Option<&'a str>Password typed in the TUI for this session only. Reaches ssh through the one-shot askpass channel and is never written to disk.
bw_session: Option<&'a str>§has_tunnel: bool§trust_new_host_key: boolSet only by a retry that follows the trust dialog: ssh runs with
StrictHostKeyChecking=accept-new for that one run so the host key
is recorded on first contact.
env: &'a EnvAuto Trait Implementations§
impl<'a> Freeze for SshContext<'a>
impl<'a> RefUnwindSafe for SshContext<'a>
impl<'a> Send for SshContext<'a>
impl<'a> Sync for SshContext<'a>
impl<'a> Unpin for SshContext<'a>
impl<'a> UnsafeUnpin for SshContext<'a>
impl<'a> UnwindSafe for SshContext<'a>
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more