pub enum ProtoError {
StringEncoding(FromUtf8Error),
IO(Error),
SshEncoding(Error),
SshKey(Error),
SshSignature(Error),
UnsupportedCommand {
command: u8,
},
UnexpectedResponse,
}
Expand description
SSH protocol error.
Variants§
StringEncoding(FromUtf8Error)
Received string was not UTF-8 encoded.
IO(Error)
Input/output error.
SshEncoding(Error)
Error decoding SSH structures.
SshKey(Error)
SSH key format error.
SshSignature(Error)
SSH signature error.
UnsupportedCommand
Received command was not supported.
UnexpectedResponse
The client expected a different response.
Trait Implementations§
Source§impl Debug for ProtoError
impl Debug for ProtoError
Source§impl Display for ProtoError
impl Display for ProtoError
Source§impl Error for ProtoError
impl Error for ProtoError
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<Error> for ProtoError
impl From<Error> for ProtoError
Source§impl From<Error> for ProtoError
impl From<Error> for ProtoError
Source§impl From<Error> for ProtoError
impl From<Error> for ProtoError
Source§impl From<Error> for ProtoError
impl From<Error> for ProtoError
Source§impl From<FromUtf8Error> for ProtoError
impl From<FromUtf8Error> for ProtoError
Source§fn from(source: FromUtf8Error) -> Self
fn from(source: FromUtf8Error) -> Self
Converts to this type from the input type.
Source§impl From<ProtoError> for AgentError
impl From<ProtoError> for AgentError
Source§fn from(source: ProtoError) -> Self
fn from(source: ProtoError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ProtoError
impl !RefUnwindSafe for ProtoError
impl Send for ProtoError
impl Sync for ProtoError
impl Unpin for ProtoError
impl !UnwindSafe for ProtoError
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