pub enum SshCliError {
Show 24 variants
Io(Error),
Json(Error),
TomlDe(Error),
TomlSer(Error),
SshConnection(String),
SshAuthentication(String),
ConnectionFailed(String),
AuthenticationFailed,
HostKeyChanged {
host: String,
port: u16,
expected: String,
obtained: String,
},
CommandTooLong {
max: usize,
len: usize,
},
SudoDisabled,
SuPasswordMissing,
ChannelFailed(String),
SshTimeout(u64),
CommandFailed {
exit_code: i32,
stderr: String,
},
VpsNotFound(String),
NoActiveVps,
VpsDuplicate(String),
FileNotFound(String),
InvalidArgument(String),
Timeout(u64),
XdgDirectory,
SchemaIncompatible {
expected: u32,
found: u32,
},
Generic(String),
}Expand description
Domain errors produced by ssh-cli operations.
Variants§
Io(Error)
Underlying I/O error.
Json(Error)
JSON serialization or deserialization error.
TomlDe(Error)
TOML deserialization error.
TomlSer(Error)
TOML serialization error.
SshConnection(String)
SSH connection-layer error.
SshAuthentication(String)
SSH authentication error with detail.
ConnectionFailed(String)
TCP/SSH connection failed before authentication.
AuthenticationFailed
SSH authentication rejected by the server.
HostKeyChanged
Host key diverged from known_hosts (possible MITM).
Fields
CommandTooLong
Command exceeds max_command_chars.
SudoDisabled
Elevation disabled (disable_sudo).
SuPasswordMissing
Missing su password for su-exec.
ChannelFailed(String)
Failed to open or operate an SSH channel.
SshTimeout(u64)
SSH operation timed out.
CommandFailed
Remote command exited non-zero.
VpsNotFound(String)
VPS name not found in the registry.
NoActiveVps
No active VPS (active sibling file missing) — GAP-SSH-EXIT-002.
VpsDuplicate(String)
Duplicate VPS name in the registry.
FileNotFound(String)
Local or remote file not found.
InvalidArgument(String)
Invalid CLI argument.
Timeout(u64)
Generic timeout.
XdgDirectory
XDG config directory unavailable.
SchemaIncompatible
Incompatible schema version.
Generic(String)
Uncategorized error.
Implementations§
Trait Implementations§
Source§impl Debug for SshCliError
impl Debug for SshCliError
Source§impl Display for SshCliError
impl Display for SshCliError
Source§impl Error for SshCliError
impl Error for SshCliError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()