Skip to main content

purple_ssh/
ssh_context.rs

1use std::path::{Path, PathBuf};
2
3/// Common SSH connection context passed to remote operations.
4pub struct SshContext<'a> {
5    pub alias: &'a str,
6    pub config_path: &'a Path,
7    pub askpass: Option<&'a str>,
8    pub bw_session: Option<&'a str>,
9    pub has_tunnel: bool,
10}
11
12/// Owned variant for spawning into threads.
13pub struct OwnedSshContext {
14    pub alias: String,
15    pub config_path: PathBuf,
16    pub askpass: Option<String>,
17    pub bw_session: Option<String>,
18    pub has_tunnel: bool,
19}