pub struct SshClient { /* private fields */ }Implementations§
Source§impl SshClient
impl SshClient
pub async fn connect( host_name: &str, entry: &HostEntry, root: &RootSecret, known_hosts_path: &Path, ) -> Result<Self, ClientError>
pub async fn exec( &self, command: &str, timeout: Duration, max_output: usize, ) -> Result<ExecResult, ClientError>
pub async fn sftp(&self) -> Result<SftpSession, ClientError>
pub async fn direct_tcpip( &self, remote_host: &str, remote_port: u32, local_host: &str, local_port: u32, ) -> Result<Channel<Msg>, ClientError>
pub fn host_name(&self) -> &str
Auto Trait Implementations§
impl !RefUnwindSafe for SshClient
impl !UnwindSafe for SshClient
impl Freeze for SshClient
impl Send for SshClient
impl Sync for SshClient
impl Unpin for SshClient
impl UnsafeUnpin for SshClient
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