Skip to main content

russh_extra_core/
lib.rs

1//! Shared types for `russh-extra`.
2//!
3//! This crate contains feature-neutral SSH domain types that are used by the
4//! user-facing crate, macros, tests, and future companion crates.
5
6pub mod auth;
7pub mod channel;
8pub mod config;
9pub mod error;
10pub mod forward;
11pub mod session;
12
13pub use auth::{
14    ClientKeyboardInteractiveInfo, ClientKeyboardInteractivePrompt, Credential, Identity,
15    KeyboardInteractiveHandler, KeyboardInteractiveReply, Password, Username,
16};
17pub use channel::{
18    ChannelKind, CommandExit, CommandLimits, DEFAULT_COMMAND_OUTPUT_LIMIT, Pty, TerminalMode,
19};
20pub use config::{
21    ClientConfig, HostKeyFingerprint, HostKeyFingerprintAlgorithm, HostKeyPolicy, Keepalive,
22    ServerConfig, Timeouts,
23};
24pub use error::{
25    AuthenticationError, AuthenticationErrorKind, BoxError, CancelledError, CategoryError,
26    ChannelError, ChannelErrorKind, DisconnectedError, Error, ForwardingError, ForwardingErrorKind,
27    HostKeyError, HostKeyErrorKind, Operation, Result, SftpError, SftpErrorKind, SshError,
28    SshErrorKind, TimeoutError, TransportError, TransportErrorKind,
29};
30pub use forward::{ForwardDirection, ForwardSpec, StreamLocalSpec, TcpEndpoint};
31pub use session::{DEFAULT_SSH_PORT, Endpoint, SessionId};