pub enum ReadFailureKind {
Show 17 variants
Spawn,
Auth,
Trust,
Network,
Subsystem,
Connect,
NotFound,
Permission,
Protocol,
Io,
NotRegularFile,
UnknownLength,
TooLarge,
ShortRead,
InvalidUtf8,
Cancelled,
Deadline,
}Expand description
What went wrong, classified far enough to act on. Auth, trust and install problems carry hints; the rest are honest transport facts.
Variants§
Spawn
The local ssh(1) executable could not be started.
Auth
Noninteractive authentication failed (BatchMode refuses prompts).
Trust
Host key unknown or changed; trust is refused, never auto-accepted.
Network
Network-level failure: DNS, routing, refusal, reset.
Subsystem
The remote host does not offer the sftp subsystem.
Connect
Session establishment failed without a finer classification.
NotFound
The remote path does not exist.
Permission
The server denied access to the path.
Protocol
The SFTP protocol exchange failed.
Io
Local pipe/transport I/O failure.
NotRegularFile
The opened handle is not proven to be a regular file.
UnknownLength
The server reported no length for the opened handle.
TooLarge
The snapshot exceeds the in-memory cap.
ShortRead
Fewer bytes than the captured length arrived.
InvalidUtf8
The snapshot is not valid UTF-8.
Cancelled
The read was cancelled by its owner.
Deadline
The total connection/read/close deadline elapsed.
Trait Implementations§
Source§impl Clone for ReadFailureKind
impl Clone for ReadFailureKind
Source§fn clone(&self) -> ReadFailureKind
fn clone(&self) -> ReadFailureKind
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more