pub struct PreparedOperation { /* private fields */ }Expand description
Metadata for one already validated canonical operation.
This value is not payload storage or proof of validation. The caller must verify the body codec and deterministic application transition before using it, and retain the exact body until application/replication releases it.
Implementations§
Source§impl PreparedOperation
impl PreparedOperation
Sourcepub fn from_verified(
operation: &CanonicalOperation<'_>,
body_digest: Digest,
) -> Self
pub fn from_verified( operation: &CanonicalOperation<'_>, body_digest: Digest, ) -> Self
Reuse a verified body digest; hash only the small canonical envelope.
The caller asserts body_digest was computed over operation.body and
that both body and state transition passed their respective validators.
Sourcepub const fn body_bytes(self) -> usize
pub const fn body_bytes(self) -> usize
Canonical body bytes charged against pipeline capacity.
Trait Implementations§
Source§impl Clone for PreparedOperation
impl Clone for PreparedOperation
impl Copy for PreparedOperation
Source§impl Debug for PreparedOperation
impl Debug for PreparedOperation
impl Eq for PreparedOperation
Source§impl PartialEq for PreparedOperation
impl PartialEq for PreparedOperation
impl StructuralPartialEq for PreparedOperation
Auto Trait Implementations§
impl Freeze for PreparedOperation
impl RefUnwindSafe for PreparedOperation
impl Send for PreparedOperation
impl Sync for PreparedOperation
impl Unpin for PreparedOperation
impl UnsafeUnpin for PreparedOperation
impl UnwindSafe for PreparedOperation
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