pub enum YageError {
Show 20 variants
PathIo {
path: PathBuf,
source: Error,
},
Io(Error),
Yaml(Error),
RecipientParse {
recipient: String,
message: String,
},
KeyParse {
message: String,
},
Decrypt(DecryptError),
Encrypt(EncryptError),
Utf8(FromUtf8Error),
Base64Decode(DecodeError),
NoRecipients,
PassphraseUnsupported,
NotAMap,
NotAStringOrNumber,
InvalidFileName {
path: PathBuf,
},
Editor,
KeyNotFound,
InPlaceStdin,
InvalidValueEncoding,
InvalidRecipients,
InvalidNumberOfInputFiles,
}Variants§
PathIo
Io(Error)
Yaml(Error)
RecipientParse
KeyParse
Decrypt(DecryptError)
Encrypt(EncryptError)
Utf8(FromUtf8Error)
Base64Decode(DecodeError)
NoRecipients
PassphraseUnsupported
NotAMap
NotAStringOrNumber
InvalidFileName
Editor
KeyNotFound
InPlaceStdin
InvalidValueEncoding
InvalidRecipients
InvalidNumberOfInputFiles
Trait Implementations§
Source§impl Error for YageError
impl Error for YageError
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<DecodeError> for YageError
impl From<DecodeError> for YageError
Source§fn from(source: DecodeError) -> Self
fn from(source: DecodeError) -> Self
Converts to this type from the input type.
Source§impl From<DecryptError> for YageError
impl From<DecryptError> for YageError
Source§fn from(source: DecryptError) -> Self
fn from(source: DecryptError) -> Self
Converts to this type from the input type.
Source§impl From<EncryptError> for YageError
impl From<EncryptError> for YageError
Source§fn from(source: EncryptError) -> Self
fn from(source: EncryptError) -> Self
Converts to this type from the input type.
Source§impl From<FromUtf8Error> for YageError
impl From<FromUtf8Error> for YageError
Source§fn from(source: FromUtf8Error) -> Self
fn from(source: FromUtf8Error) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for YageError
impl !RefUnwindSafe for YageError
impl Send for YageError
impl Sync for YageError
impl Unpin for YageError
impl !UnwindSafe for YageError
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