#[non_exhaustive]pub enum RefusalReason {
AmbiguousTarget,
MissingTarget,
UnauthorizedTarget,
StaleTarget,
ConfirmationRequired,
DomainRejected,
}Expand description
Why a side did not run a mutation it had understood.
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.
AmbiguousTarget
Several authorized records matched, and picking one is never allowed (I8).
MissingTarget
The token was issued this turn and the record no longer exists.
Unknown token, or another tenant’s.
StaleTarget
The record moved past the revision the token was issued at.
ConfirmationRequired
Policy required a confirmation the turn did not have.
DomainRejected
The domain refused it deterministically.
Implementations§
Source§impl RefusalReason
impl RefusalReason
Sourcepub const fn is_unresolved_target(self) -> bool
pub const fn is_unresolved_target(self) -> bool
Whether the refusal was about which record was meant.
This is the class of refusal that makes a difference a finding against the other path: the mutation was understood, and the target was not.
Trait Implementations§
Source§impl Clone for RefusalReason
impl Clone for RefusalReason
impl Copy for RefusalReason
Source§impl Debug for RefusalReason
impl Debug for RefusalReason
Source§impl Display for RefusalReason
impl Display for RefusalReason
impl Eq for RefusalReason
Source§impl Hash for RefusalReason
impl Hash for RefusalReason
Source§impl PartialEq for RefusalReason
impl PartialEq for RefusalReason
impl StructuralPartialEq for RefusalReason
Auto Trait Implementations§
impl Freeze for RefusalReason
impl RefUnwindSafe for RefusalReason
impl Send for RefusalReason
impl Sync for RefusalReason
impl Unpin for RefusalReason
impl UnsafeUnpin for RefusalReason
impl UnwindSafe for RefusalReason
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,
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.