pub enum SshTransportError {
Cancelled,
RequestTooLarge {
bytes: usize,
maximum: usize,
},
SpawnFailed,
IoFailed,
TimedOut,
ProcessFailed {
status: Option<i32>,
},
IdentityFileChanged,
TrustSnapshotChanged,
ResponseTooLarge {
maximum: usize,
},
}Expand description
Stable, secret-free OpenSSH transport failure.
Variants§
Cancelled
The client cancelled the operation.
RequestTooLarge
The request exceeded the local protocol bound.
SpawnFailed
The OpenSSH client could not be started.
IoFailed
A local pipe failed without exposing worker output.
TimedOut
The fixed operation deadline elapsed.
ProcessFailed
OpenSSH exited unsuccessfully. Stderr remains private.
IdentityFileChanged
The private-key path no longer matched its retained file handle.
TrustSnapshotChanged
The private host-key snapshot or its retained directory failed revalidation.
ResponseTooLarge
Worker stdout exceeded its public protocol limit.
Trait Implementations§
Source§impl Clone for SshTransportError
impl Clone for SshTransportError
impl Copy for SshTransportError
Source§impl Debug for SshTransportError
impl Debug for SshTransportError
Source§impl Display for SshTransportError
impl Display for SshTransportError
impl Eq for SshTransportError
Source§impl Error for SshTransportError
impl Error for SshTransportError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<SshTransportError> for SshSnapshotSessionError
impl From<SshTransportError> for SshSnapshotSessionError
Source§fn from(source: SshTransportError) -> Self
fn from(source: SshTransportError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SshTransportError
impl PartialEq for SshTransportError
impl StructuralPartialEq for SshTransportError
Auto Trait Implementations§
impl Freeze for SshTransportError
impl RefUnwindSafe for SshTransportError
impl Send for SshTransportError
impl Sync for SshTransportError
impl Unpin for SshTransportError
impl UnsafeUnpin for SshTransportError
impl UnwindSafe for SshTransportError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.