pub enum RejectKind {
UnknownCommitment,
Transient,
Protocol,
}Expand description
Why a responder rejected an audit challenge, in a form the auditor can act on without string-matching.
ADR-0004 Amendment 1: audit grace is removed. Answerability is now restart-durable (the responder persists and reloads its commitment retention) and the auditor only pins roots inside the answerability window, so an honest node can always answer a pin it could be challenged on. The auditor therefore grades a responsive rejection purely by kind, with no grace:
UnknownCommitment/Protocol→ confirmed failure: repudiating a pinned root the node published (and may have been paid for), or an explicit protocol fault.Transient→ routed to the non-response/timeout lane (no trust penalty, but the holder credit for the pinned commitment IS revoked). The responder retries reads before emittingTransient, so one that still reaches the auditor means the node could not serve data it committed to. ATransient-spammer thus gains no positive standing; deterministically distinguishing malicious from genuine transient IO network-wide is the out-of-scope distributed non-response problem.
Variants§
UnknownCommitment
The responder does not retain the pinned commitment. With restart-durable retention and in-window auditing this is provable repudiation of a root the node published → CONFIRMED failure.
Transient
A transient, recoverable local condition: a storage read error the responder’s read retries did not clear, a round 1 refused because its pointer roots would not fit the session budget, or a pointer record round 1 bound that is no longer kept (ADR-0019). Routed to the timeout lane (holder credit revoked, no trust penalty).
Protocol
Any other rejection (wrong target peer, no commitment state, malformed proof plan, oversized slice challenge, …). CONFIRMED failure.
Trait Implementations§
Source§impl Clone for RejectKind
impl Clone for RejectKind
impl Copy for RejectKind
Source§impl Debug for RejectKind
impl Debug for RejectKind
Source§impl<'de> Deserialize<'de> for RejectKind
impl<'de> Deserialize<'de> for RejectKind
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>,
impl Eq for RejectKind
Source§impl PartialEq for RejectKind
impl PartialEq for RejectKind
Source§impl Serialize for RejectKind
impl Serialize for RejectKind
impl StructuralPartialEq for RejectKind
Auto Trait Implementations§
impl Freeze for RejectKind
impl RefUnwindSafe for RejectKind
impl Send for RejectKind
impl Sync for RejectKind
impl Unpin for RejectKind
impl UnsafeUnpin for RejectKind
impl UnwindSafe for RejectKind
Blanket Implementations§
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> 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<'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
impl<'de, T> BorrowedRpcObject<'de> for 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,
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
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<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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more