pub struct PrecompileRequest { /* private fields */ }Expand description
Represents a single precompile request consisting of an event ID and byte data.
This structure encapsulates the call data for a precompile operation, storing the raw bytes that will be processed by the precompile verifier when recomputing the corresponding commitment.
The EventId corresponds to the one used by the EventHandler that invoked the precompile
during VM execution. The verifier uses this ID to select the appropriate PrecompileVerifier
to validate the calldata.
Implementations§
Trait Implementations§
Source§impl Clone for PrecompileRequest
impl Clone for PrecompileRequest
Source§fn clone(&self) -> PrecompileRequest
fn clone(&self) -> PrecompileRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PrecompileRequest
impl Debug for PrecompileRequest
Source§impl Deserializable for PrecompileRequest
impl Deserializable for PrecompileRequest
Source§fn read_from<R: ByteReader>(
source: &mut R,
) -> Result<Self, DeserializationError>
fn read_from<R: ByteReader>( source: &mut R, ) -> Result<Self, DeserializationError>
Reads a sequence of bytes from the provided
source, attempts to deserialize these bytes
into Self, and returns the result. Read moreSource§fn read_from_bytes(bytes: &[u8]) -> Result<Self, DeserializationError>
fn read_from_bytes(bytes: &[u8]) -> Result<Self, DeserializationError>
Source§impl PartialEq for PrecompileRequest
impl PartialEq for PrecompileRequest
Source§impl Serializable for PrecompileRequest
impl Serializable for PrecompileRequest
Source§fn write_into<W: ByteWriter>(&self, target: &mut W)
fn write_into<W: ByteWriter>(&self, target: &mut W)
Serializes
self into bytes and writes these bytes into the target.Source§fn get_size_hint(&self) -> usize
fn get_size_hint(&self) -> usize
Returns an estimate of how many bytes are needed to represent self. Read more
impl Eq for PrecompileRequest
impl StructuralPartialEq for PrecompileRequest
Auto Trait Implementations§
impl Freeze for PrecompileRequest
impl RefUnwindSafe for PrecompileRequest
impl Send for PrecompileRequest
impl Sync for PrecompileRequest
impl Unpin for PrecompileRequest
impl UnwindSafe for PrecompileRequest
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