pub struct CreateFeedback {
pub trap: CreateTrap,
pub reason: Result<H160, ExitError>,
pub retbuf: Vec<u8>,
}
Expand description
Feedback value of the create trap.
Fields§
§trap: CreateTrap
Original create trap.
reason: Result<H160, ExitError>
Exit reason and new contract address.
retbuf: Vec<u8>
Return value.
Implementations§
Source§impl CreateFeedback
impl CreateFeedback
Sourcepub fn to_machine<S: AsRef<RuntimeState> + AsMut<RuntimeState>, I: AsRef<Machine<S>> + AsMut<Machine<S>>>(
self,
interpreter: &mut I,
) -> Result<(), ExitError>
pub fn to_machine<S: AsRef<RuntimeState> + AsMut<RuntimeState>, I: AsRef<Machine<S>> + AsMut<Machine<S>>>( self, interpreter: &mut I, ) -> Result<(), ExitError>
Apply the trap feedback to the machine state.
Trait Implementations§
Source§impl Debug for CreateFeedback
impl Debug for CreateFeedback
Source§impl<'etable, S, H, ES: Etable<H, State = S>> FeedbackInterpreter<H, CreateFeedback> for EtableInterpreter<'etable, S, ES>
impl<'etable, S, H, ES: Etable<H, State = S>> FeedbackInterpreter<H, CreateFeedback> for EtableInterpreter<'etable, S, ES>
Auto Trait Implementations§
impl Freeze for CreateFeedback
impl RefUnwindSafe for CreateFeedback
impl Send for CreateFeedback
impl Sync for CreateFeedback
impl Unpin for CreateFeedback
impl UnwindSafe for CreateFeedback
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
.