pub struct CreateTrap {
pub scheme: CreateScheme,
pub value: U256,
pub code: Vec<u8>,
}
Expand description
Call trap.
Fields§
§scheme: CreateScheme
Call scheme.
value: U256
Value passed to the call.
code: Vec<u8>
Init code.
Implementations§
Source§impl CreateTrap
impl CreateTrap
Sourcepub fn new_create_from<S: AsRef<RuntimeState> + AsMut<RuntimeState>>(
machine: &mut Machine<S>,
) -> Result<Self, ExitError>
pub fn new_create_from<S: AsRef<RuntimeState> + AsMut<RuntimeState>>( machine: &mut Machine<S>, ) -> Result<Self, ExitError>
Create a new CREATE
trap from the machine state.
Sourcepub fn new_create2_from<S: AsRef<RuntimeState> + AsMut<RuntimeState>>(
machine: &mut Machine<S>,
) -> Result<Self, ExitError>
pub fn new_create2_from<S: AsRef<RuntimeState> + AsMut<RuntimeState>>( machine: &mut Machine<S>, ) -> Result<Self, ExitError>
Create a new CREATE2
trap from the machine state.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CreateTrap
impl RefUnwindSafe for CreateTrap
impl Send for CreateTrap
impl Sync for CreateTrap
impl Unpin for CreateTrap
impl UnwindSafe for CreateTrap
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
Source§impl<T> TrapConsume<T> for T
impl<T> TrapConsume<T> for T
Source§type Rest = Infallible
type Rest = Infallible
Rest type.
Source§fn consume(self) -> Result<T, Infallible>
fn consume(self) -> Result<T, Infallible>
Consume
T
to get Rest
.