pub enum ErrorKinds {
IllegalOperation,
InvalidKey,
MissingHome,
ConfigurationInaccessible,
RequestFailed,
ResponseInvalid,
KeyInaccessible,
SignatureFailed,
AuthModeUnresolved,
}Expand description
Defines various kinds of errors, adding context to failures.
Variants§
IllegalOperation
Something attempted was fundamentally illegal due to being impossible to satisfy, or certain to fail.
InvalidKey
The provided Ed25519 private key is not valid and/or could not be loaded.
MissingHome
Could not find the user’s home directory, and thus cannot access agent configuration.
ConfigurationInaccessible
Unable to access or (de)serialize configuration file, despite knowing path.
RequestFailed
Request to Vigor server failed.
ResponseInvalid
Structure of JSON response from Vigor server is invalid.
KeyInaccessible
Unable to access either the provided Ed25519 private or public key.
SignatureFailed
Signature creation with the provided Ed25519 private key failed.
AuthModeUnresolved
vigor_agent::AuthMode::Auto was specified, and no available authentication mode could be resolved.
At least one authentication mode is required to authenticate.
Trait Implementations§
Source§impl Clone for ErrorKinds
impl Clone for ErrorKinds
Source§fn clone(&self) -> ErrorKinds
fn clone(&self) -> ErrorKinds
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more