pub enum AgeError {
Header,
NoMatch,
Hmac,
Payload,
}Expand description
復号できなかった理由。公式のテストベクターの expect と同じ分け方にする。
Variants§
Header
ヘッダーの形が正しくない。ノンスがないものも含む
NoMatch
パスフレーズで包んだ鍵がないか、パスフレーズが違う
Hmac
ヘッダーが書き換えられている
Payload
本文が書き換えられているか、途中で切れている
Trait Implementations§
impl Copy for AgeError
impl Eq for AgeError
Source§impl Error for AgeError
impl Error for AgeError
1.30.0 · 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()
impl StructuralPartialEq for AgeError
Auto Trait Implementations§
impl Freeze for AgeError
impl RefUnwindSafe for AgeError
impl Send for AgeError
impl Sync for AgeError
impl Unpin for AgeError
impl UnsafeUnpin for AgeError
impl UnwindSafe for AgeError
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