pub enum Error {
Show 61 variants
ConfigMissingEmail,
CreateBlockMode {
source: InvalidLength,
},
CreateHmac {
source: InvalidLength,
},
CreateDirectory {
source: Error,
file: PathBuf,
},
CreateReqwestClient {
source: Error,
},
CreateSSOCallbackServer {
err: Error,
},
Decrypt {
msg: String,
},
FailedToFindFreePort {
range: String,
},
FailedToParsePinentry {
out: String,
},
FailedToProcessSSOCallback {
msg: String,
},
FailedToOpenWebBrowser {
err: Error,
},
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,
},
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,
NativePromptUnsupported,
NativePromptFailed {
code: i32,
stage: &'static str,
},
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>,
sso_email_2fa_session_token: Option<String>,
},
UnimplementedCipherStringType {
ty: String,
},
WriteStdin {
source: Error,
},
InvalidKdfType {
ty: String,
},
Totp {
msg: String,
},
}Variants§
ConfigMissingEmail
CreateBlockMode
Fields
§
source: InvalidLengthCreateHmac
Fields
§
source: InvalidLengthCreateDirectory
CreateReqwestClient
CreateSSOCallbackServer
Decrypt
FailedToFindFreePort
FailedToParsePinentry
FailedToProcessSSOCallback
FailedToOpenWebBrowser
FailedToReadFromStdin
FailedToFindEditor
FailedToRunEditor
HkdfExpand
IncorrectApiKey
IncorrectPassword
InvalidBase64
Fields
§
source: DecodeErrorInvalidCipherString
InvalidEditor
InvalidMac
InvalidTwoFactorProvider
Json
LoadConfig
LoadConfigAsync
LoadConfigJson
LoadDb
LoadDbAsync
LoadDbJson
LoadDeviceId
LoadClientCert
Padding
ParseMatchType
Pbkdf2ZeroIterations
Pbkdf2
Argon2
PinentryCancelled
NativePromptUnsupported
NativePromptFailed
PinentryErrorMessage
PinentryReadOutput
PinentryWait
RegistrationRequired
RemoveDb
RequestFailed
Reqwest
Rsa
RsaPkcs8
SaveConfig
SaveConfigJson
SaveDb
SaveDbAsync
SaveDbJson
Spawn
TooOldCipherStringType
TwoFactorRequired
UnimplementedCipherStringType
WriteStdin
InvalidKdfType
Totp
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)>
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 Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin 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
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> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.