pub struct CallFeedback {
pub trap: CallTrap,
pub reason: ExitResult,
pub retbuf: Vec<u8>,
}Expand description
Feedback value of a call trap.
Fields§
§trap: CallTrapThe original call trap.
reason: ExitResultExit reason.
retbuf: Vec<u8>Return value.
Implementations§
Source§impl CallFeedback
impl CallFeedback
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 call feedback into a machine state.
Trait Implementations§
Source§impl Debug for CallFeedback
impl Debug for CallFeedback
Source§impl<'etable, S, H, ES: Etable<H, State = S>> FeedbackInterpreter<H, CallFeedback> for EtableInterpreter<'etable, S, ES>
impl<'etable, S, H, ES: Etable<H, State = S>> FeedbackInterpreter<H, CallFeedback> for EtableInterpreter<'etable, S, ES>
Auto Trait Implementations§
impl Freeze for CallFeedback
impl RefUnwindSafe for CallFeedback
impl Send for CallFeedback
impl Sync for CallFeedback
impl Unpin for CallFeedback
impl UnsafeUnpin for CallFeedback
impl UnwindSafe for CallFeedback
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.