async_ssh2_lite/
lib.rs

1//! Asynchronous [ssh2](https://docs.rs/ssh2)
2
3pub use ssh2;
4
5#[cfg(feature = "async-io")]
6pub use async_io;
7#[cfg(feature = "async-io")]
8pub type AsyncIoTcpStream = async_io::Async<std::net::TcpStream>;
9#[cfg(all(unix, feature = "async-io"))]
10pub type AsyncIoUnixStream = async_io::Async<std::os::unix::net::UnixStream>;
11
12#[cfg(all(unix, feature = "tokio"))]
13pub use tokio::net::UnixStream as TokioUnixStream;
14#[cfg(feature = "tokio")]
15pub use tokio::{self, net::TcpStream as TokioTcpStream};
16
17//
18pub mod agent;
19pub mod channel;
20pub mod listener;
21pub mod session;
22pub mod sftp;
23
24pub use agent::AsyncAgent;
25pub use channel::{AsyncChannel, AsyncStream};
26pub use listener::AsyncListener;
27pub use session::{AsyncSession, SessionConfiguration};
28pub use sftp::{AsyncFile, AsyncSftp};
29
30//
31pub mod error;
32pub mod session_stream;
33pub mod util;
34
35pub use error::Error;
36pub use session_stream::AsyncSessionStream;