pub struct OpsBatch<'a> { /* private fields */ }Expand description
Borrowed, hash-validated response from one frozen source generation.
Intermediate chunks prove only their own chain from the predecessor. The full selected lineage is verified only when that chain reaches its tail hash. No transfer response supplies normal voting or application commit authority.
Implementations§
Source§impl<'a> OpsBatch<'a>
impl<'a> OpsBatch<'a>
Sourcepub const fn request_id(self) -> RequestId
pub const fn request_id(self) -> RequestId
Correlation echoed from FETCH_OPS.
Sourcepub const fn source(self) -> LogSource
pub const fn source(self) -> LogSource
Exact frozen source named by the response, still requiring request matching.
Sourcepub const fn predecessor(self) -> Prefix
pub const fn predecessor(self) -> Prefix
Exact prefix immediately before the returned operations.
Sourcepub const fn end(self) -> Prefix
pub const fn end(self) -> Prefix
End of this nonempty chunk, not necessarily the selected source’s tail.
Sourcepub fn operations(self) -> Operations<'a> ⓘ
pub fn operations(self) -> Operations<'a> ⓘ
Iterate immutable canonical bodies without allocating or rehashing.
Sourcepub fn validate_response(self, request: FetchOps) -> Result<(), WireError>
pub fn validate_response(self, request: FetchOps) -> Result<(), WireError>
Match the live outstanding request after authenticated session decoding.
The adapter invalidates pending requests when their session or role ends. Success here does not advance the installation cursor or imply disk sync.