pub struct PrepareBatch<'a> { /* private fields */ }Expand description
Hash-validated prepare borrowing the packet’s backing buffers.
No per-operation vector is allocated. Canonical body schemas and application transitions still need validation before constructing core prepare metadata.
Implementations§
Source§impl<'a> PrepareBatch<'a>
impl<'a> PrepareBatch<'a>
Sourcepub const fn predecessor(self) -> Prefix
pub const fn predecessor(self) -> Prefix
Exact prefix immediately before the first operation.
Sourcepub const fn end(self) -> Prefix
pub const fn end(self) -> Prefix
Exact hash-validated end of this batch, not a durable or committed boundary.
Sourcepub fn operations(self) -> Operations<'a> ⓘ
pub fn operations(self) -> Operations<'a> ⓘ
Iterate verified descriptors and borrowed bodies without hashing again.
Sourcepub fn verified_operations(
self,
) -> impl ExactSizeIterator<Item = VerifiedOperation<'a>> + FusedIterator
pub fn verified_operations( self, ) -> impl ExactSizeIterator<Item = VerifiedOperation<'a>> + FusedIterator
Iterate immutable decoder proofs without allocating or rehashing bodies.
Trait Implementations§
Source§impl<'a> Clone for PrepareBatch<'a>
impl<'a> Clone for PrepareBatch<'a>
impl<'a> Copy for PrepareBatch<'a>
Source§impl<'a> Debug for PrepareBatch<'a>
impl<'a> Debug for PrepareBatch<'a>
impl<'a> Eq for PrepareBatch<'a>
Source§impl<'a> PartialEq for PrepareBatch<'a>
impl<'a> PartialEq for PrepareBatch<'a>
impl<'a> StructuralPartialEq for PrepareBatch<'a>
Auto Trait Implementations§
impl<'a> Freeze for PrepareBatch<'a>
impl<'a> RefUnwindSafe for PrepareBatch<'a>
impl<'a> Send for PrepareBatch<'a>
impl<'a> Sync for PrepareBatch<'a>
impl<'a> Unpin for PrepareBatch<'a>
impl<'a> UnsafeUnpin for PrepareBatch<'a>
impl<'a> UnwindSafe for PrepareBatch<'a>
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