pub enum CallCreateTrap {
Call(CallTrap),
Create(CreateTrap),
}
Expand description
Combined call create trap data.
Variants§
Implementations§
Source§impl CallCreateTrap
impl CallCreateTrap
Sourcepub const fn target_gas(&self) -> Option<U256>
pub const fn target_gas(&self) -> Option<U256>
Target gas value.
Sourcepub fn new_from<S: AsRef<RuntimeState> + AsMut<RuntimeState>>(
opcode: CallCreateOpcode,
machine: &mut Machine<S>,
) -> Result<Self, ExitError>
pub fn new_from<S: AsRef<RuntimeState> + AsMut<RuntimeState>>( opcode: CallCreateOpcode, machine: &mut Machine<S>, ) -> Result<Self, ExitError>
Create a new trap from the given opcode and the machine state.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CallCreateTrap
impl RefUnwindSafe for CallCreateTrap
impl Send for CallCreateTrap
impl Sync for CallCreateTrap
impl Unpin for CallCreateTrap
impl UnwindSafe for CallCreateTrap
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
.