pub enum EventProblem {
Malformed(String),
WrongKey {
signed_by: String,
offered: String,
},
NotVerified,
}Expand description
Why a signed event did not verify.
Shared by every log so one refusal reads the same everywhere. The three arms name three different failures on purpose — a caller that collapsed them would report “the key you offered is not the one that signed this” and “the signature is forged” with the same sentence.
Variants§
Malformed(String)
The stored form could not be read at all — not a well-formed sshsig,
or made under a namespace this log does not sign under.
WrongKey
The signature is over a different key than the one offered to check it.
Fields
NotVerified
Well formed, right key, right namespace — and the signature does not check out.
Trait Implementations§
Source§impl Clone for EventProblem
impl Clone for EventProblem
Source§impl Debug for EventProblem
impl Debug for EventProblem
Source§impl Display for EventProblem
impl Display for EventProblem
impl Eq for EventProblem
Source§impl PartialEq for EventProblem
impl PartialEq for EventProblem
impl StructuralPartialEq for EventProblem
Auto Trait Implementations§
impl Freeze for EventProblem
impl RefUnwindSafe for EventProblem
impl Send for EventProblem
impl Sync for EventProblem
impl Unpin for EventProblem
impl UnsafeUnpin for EventProblem
impl UnwindSafe for EventProblem
Blanket Implementations§
impl<T> Allocation for T
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
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.