pub enum SubtreeByteResponse {
Items {
challenge_id: u64,
items: Vec<SubtreeByteItem>,
},
Bootstrapping {
challenge_id: u64,
},
Rejected {
challenge_id: u64,
kind: RejectKind,
reason: String,
},
}Expand description
Response to a SubtreeByteChallenge (round 2). One item per requested key,
in the requested order.
Sizing rule: a challenge carries at most
MAX_BYTE_CHALLENGE_KEYS keys —
the auditor batches its sample, the responder rejects larger requests — so
the WORST-CASE Items response (every chunk at MAX_CHUNK_SIZE) always
encodes under MAX_REPLICATION_MESSAGE_SIZE.
Variants§
Items
The responder’s per-key answers (bytes or an explicit absent signal).
Fields
items: Vec<SubtreeByteItem>One entry per requested key.
Bootstrapping
Peer is still bootstrapping (should not happen mid-audit, but handled).
Rejected
The responder rejects the byte challenge outright. kind drives the
auditor’s accounting (ADR-0004 A1: grace removed): RejectKind::Transient
routes to the timeout lane (no trust penalty, holder credit revoked); every
other kind is a confirmed failure, like round 1.
Trait Implementations§
Source§impl Clone for SubtreeByteResponse
impl Clone for SubtreeByteResponse
Source§fn clone(&self) -> SubtreeByteResponse
fn clone(&self) -> SubtreeByteResponse
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SubtreeByteResponse
impl Debug for SubtreeByteResponse
Source§impl<'de> Deserialize<'de> for SubtreeByteResponse
impl<'de> Deserialize<'de> for SubtreeByteResponse
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>,
Auto Trait Implementations§
impl Freeze for SubtreeByteResponse
impl RefUnwindSafe for SubtreeByteResponse
impl Send for SubtreeByteResponse
impl Sync for SubtreeByteResponse
impl Unpin for SubtreeByteResponse
impl UnsafeUnpin for SubtreeByteResponse
impl UnwindSafe for SubtreeByteResponse
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
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<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