pub enum AuthcryptError {
NotAuthcrypt,
NoSenderKey,
NoFrom,
Mismatch {
claimed: String,
authenticated: String,
},
}Expand description
Why binding an authcrypt sender failed. Auth handlers render it with
AuthcryptError::message; the vault path matches specific variants to map
onto its own error type.
Variants§
NotAuthcrypt
Not a sender-authenticated encrypted (authcrypt) envelope — the message
was plaintext or anoncrypt, so its from is unauthenticated.
NoSenderKey
Authcrypt, but the unpack metadata carried no authenticated sender key.
NoFrom
The inner message carried no from header.
Mismatch
The inner from did not match the DID of the authenticated sender key —
the core forged-sender case (attacker authcrypts with their own key while
claiming a victim’s from).
Implementations§
Trait Implementations§
Source§impl Clone for AuthcryptError
impl Clone for AuthcryptError
Source§fn clone(&self) -> AuthcryptError
fn clone(&self) -> AuthcryptError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AuthcryptError
impl Debug for AuthcryptError
impl Eq for AuthcryptError
Source§impl PartialEq for AuthcryptError
impl PartialEq for AuthcryptError
impl StructuralPartialEq for AuthcryptError
Auto Trait Implementations§
impl Freeze for AuthcryptError
impl RefUnwindSafe for AuthcryptError
impl Send for AuthcryptError
impl Sync for AuthcryptError
impl Unpin for AuthcryptError
impl UnsafeUnpin for AuthcryptError
impl UnwindSafe for AuthcryptError
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> BorrowUnordered for T
impl<T> BorrowUnordered for T
fn as_unordered(&self) -> &Unordered<T>
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
fn equivalent(&self, key: &K) -> bool
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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, U, C> IntoWithContext<U, C> for Twhere
U: FromWithContext<T, C>,
impl<T, U, C> IntoWithContext<U, C> for Twhere
U: FromWithContext<T, C>,
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> ResourceProvider<()> for T
impl<T> ResourceProvider<()> for T
Source§fn get_resource(&self) -> &()
fn get_resource(&self) -> &()
Returns a reference to the resource of type
T.