#[non_exhaustive]pub enum ExchangeRefusal {
Subject,
Proof,
Presenter,
Revoked,
NotConsented,
Audience,
Again,
}Expand description
KEEL-19: why an exchange was refused, as a word.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Subject
The subject token is not one this issuer minted, or no longer lives.
Proof
No proof of possession by the subject token’s key, or a wrong one.
Presenter
The presenter is not a peer mounted in this service.
Revoked
The presenter (or the audience) is revoked.
NotConsented
The presenter holds no consented need that covers the audience and the method asked.
Audience
The audience is not a peer that proved a key.
Again
This subject token was exchanged for this audience and method before.
Implementations§
Trait Implementations§
Source§impl Clone for ExchangeRefusal
impl Clone for ExchangeRefusal
impl Copy for ExchangeRefusal
Source§impl Debug for ExchangeRefusal
impl Debug for ExchangeRefusal
Source§impl<'de> Deserialize<'de> for ExchangeRefusal
impl<'de> Deserialize<'de> for ExchangeRefusal
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ExchangeRefusal
impl Display for ExchangeRefusal
impl Eq for ExchangeRefusal
Source§impl PartialEq for ExchangeRefusal
impl PartialEq for ExchangeRefusal
Source§impl Serialize for ExchangeRefusal
impl Serialize for ExchangeRefusal
impl StructuralPartialEq for ExchangeRefusal
Auto Trait Implementations§
impl Forget for ExchangeRefusal
impl Freeze for ExchangeRefusal
impl Move for ExchangeRefusal
impl RefUnwindSafe for ExchangeRefusal
impl Send for ExchangeRefusal
impl Sync for ExchangeRefusal
impl Unpin for ExchangeRefusal
impl UnsafeUnpin for ExchangeRefusal
impl UnwindSafe for ExchangeRefusal
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
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.