Struct wezterm_ssh::Session
source · [−]pub struct Session { /* private fields */ }
Implementations
pub async fn request_pty(
&self,
term: &str,
size: PtySize,
command_line: Option<&str>,
env: Option<HashMap<String, String>>
) -> Result<(SshPty, SshChildProcess)>
pub async fn exec(
&self,
command_line: &str,
env: Option<HashMap<String, String>>
) -> Result<ExecResult>
Creates a new reference to the sftp channel for filesystem operations
Note
This does not actually initialize the sftp subsystem and only provides a reference to a means to perform sftp operations. Upon requesting the first sftp operation, the sftp subsystem will be initialized.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Session
impl UnwindSafe for Session
Blanket Implementations
Mutably borrows from an owned value. Read more