pub enum SshError {
ReadKey {
path: PathBuf,
source: Error,
},
ParseKey {
path: PathBuf,
source: Error,
},
GenerateKey(Error),
SerializeKey(Error),
WriteKey {
path: PathBuf,
source: Error,
},
CreateDirectory {
path: PathBuf,
source: Error,
},
SetPermissions {
path: PathBuf,
source: Error,
},
UnsupportedKeyType(String),
InvalidMetadata {
field: String,
message: String,
},
}Expand description
Errors that can occur during SSH key operations.
Variants§
ReadKey
Failed to read a key file from disk.
ParseKey
Failed to parse an SSH key.
GenerateKey(Error)
Failed to generate an SSH key.
SerializeKey(Error)
Failed to serialize a key.
WriteKey
Failed to write a key file to disk.
CreateDirectory
Failed to create a directory.
SetPermissions
Failed to set file permissions.
UnsupportedKeyType(String)
Unsupported key type for the requested operation.
InvalidMetadata
Failed to add metadata to gRPC request.
Trait Implementations§
Source§impl Error for SshError
impl Error for SshError
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()
Auto Trait Implementations§
impl Freeze for SshError
impl !RefUnwindSafe for SshError
impl Send for SshError
impl Sync for SshError
impl Unpin for SshError
impl !UnwindSafe for SshError
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request