pub type ErroSshCli = SshCliError;use SshCliError from crate::errors
Expand description
Deprecated Portuguese alias for SshCliError.
Aliased Typeยง
pub enum ErroSshCli {
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),
}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.