t-ssh-client 0.2.1

Rust async ssh client wrapped by thrussh
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use std::io;
use thiserror::Error;

#[derive(Error, Debug)]
pub enum ClientError {
    #[error(transparent)]
    IOError(#[from] io::Error),
    #[error("connect server failed: {0}")]
    ClientFailed(#[from] thrussh::Error),
    #[error("connect server timeout.")]
    Timeout,
    #[error("auth failed: {0}")]
    AuthFailed(String),
    #[error("encode/decode failed: {0}")]
    KeyError(#[from] thrussh_keys::Error),
    #[error("login username is empty.")]
    UsernameEmpty,
}