pub enum Error {
Show 54 variants
ConfigMissingEmail,
CreateBlockMode {
source: InvalidLength,
},
CreateHmac {
source: InvalidLength,
},
CreateDirectory {
source: Error,
file: PathBuf,
},
CreateReqwestClient {
source: Error,
},
Decrypt {
source: UnpadError,
},
FailedToParsePinentry {
out: String,
},
FailedToReadFromStdin {
err: Error,
},
FailedToFindEditor {
editor: PathBuf,
err: Error,
},
FailedToRunEditor {
editor: PathBuf,
args: Vec<OsString>,
res: ExitStatus,
},
HkdfExpand,
IncorrectApiKey,
IncorrectPassword {
message: String,
},
InvalidBase64 {
source: DecodeError,
},
InvalidCipherString {
reason: String,
},
InvalidEditor {
var: String,
editor: OsString,
},
InvalidMac,
InvalidTwoFactorProvider {
ty: String,
},
Json {
source: Error<Error>,
},
LoadConfig {
source: Error,
file: PathBuf,
},
LoadConfigAsync {
source: Error,
file: PathBuf,
},
LoadConfigJson {
source: Error,
file: PathBuf,
},
LoadDb {
source: Error,
file: PathBuf,
},
LoadDbAsync {
source: Error,
file: PathBuf,
},
LoadDbJson {
source: Error,
file: PathBuf,
},
LoadDeviceId {
source: Error,
file: PathBuf,
},
LoadClientCert {
source: Error,
file: PathBuf,
},
Padding,
ParseMatchType {
s: String,
},
Pbkdf2ZeroIterations,
Pbkdf2,
Argon2,
PinentryCancelled,
PinentryErrorMessage {
error: String,
},
PinentryReadOutput {
source: Error,
},
PinentryWait {
source: Error,
},
RegistrationRequired,
RemoveDb {
source: Error,
file: PathBuf,
},
RequestFailed {
status: u16,
},
RequestUnauthorized,
Reqwest {
source: Error,
},
Rsa {
source: Error,
},
RsaPkcs8 {
source: Error,
},
SaveConfig {
source: Error,
file: PathBuf,
},
SaveConfigJson {
source: Error,
file: PathBuf,
},
SaveDb {
source: Error,
file: PathBuf,
},
SaveDbAsync {
source: Error,
file: PathBuf,
},
SaveDbJson {
source: Error,
file: PathBuf,
},
Spawn {
source: Error,
},
TooOldCipherStringType {
ty: String,
},
TwoFactorRequired {
providers: Vec<TwoFactorProviderType>,
},
UnimplementedCipherStringType {
ty: String,
},
WriteStdin {
source: Error,
},
InvalidKdfType {
ty: String,
},
}
Variants§
ConfigMissingEmail
CreateBlockMode
Fields
§
source: InvalidLength
CreateHmac
Fields
§
source: InvalidLength
CreateDirectory
CreateReqwestClient
Decrypt
Fields
§
source: UnpadError
FailedToParsePinentry
FailedToReadFromStdin
FailedToFindEditor
FailedToRunEditor
HkdfExpand
IncorrectApiKey
IncorrectPassword
InvalidBase64
Fields
§
source: DecodeError
InvalidCipherString
InvalidEditor
InvalidMac
InvalidTwoFactorProvider
Json
LoadConfig
LoadConfigAsync
LoadConfigJson
LoadDb
LoadDbAsync
LoadDbJson
LoadDeviceId
LoadClientCert
Padding
ParseMatchType
Pbkdf2ZeroIterations
Pbkdf2
Argon2
PinentryCancelled
PinentryErrorMessage
PinentryReadOutput
PinentryWait
RegistrationRequired
RemoveDb
RequestFailed
Reqwest
Rsa
RsaPkcs8
SaveConfig
SaveConfigJson
SaveDb
SaveDbAsync
SaveDbJson
Spawn
TooOldCipherStringType
TwoFactorRequired
Fields
§
providers: Vec<TwoFactorProviderType>
UnimplementedCipherStringType
WriteStdin
InvalidKdfType
Trait Implementations§
source§impl Error for Error
impl Error for Error
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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