pub struct State<Ext, Mem> {
pub ext: Ext,
pub memory: Mem,
pub termination_reason: UndefinedTerminationReason,
}Fields§
§ext: Ext§memory: Mem§termination_reason: UndefinedTerminationReasonTrait Implementations§
Source§impl<Ext, Mem> BackendState for State<Ext, Mem>
impl<Ext, Mem> BackendState for State<Ext, Mem>
Source§fn set_termination_reason(&mut self, reason: UndefinedTerminationReason)
fn set_termination_reason(&mut self, reason: UndefinedTerminationReason)
Set termination reason
Source§fn process_fallible_func_result<T: Sized>(
&mut self,
res: Result<T, RunFallibleError>,
) -> Result<Result<T, u32>, UndefinedTerminationReason>
fn process_fallible_func_result<T: Sized>( &mut self, res: Result<T, RunFallibleError>, ) -> Result<Result<T, u32>, UndefinedTerminationReason>
Process fallible syscall function result
Source§fn process_alloc_func_result<T: Sized, ExtAllocError: BackendAllocSyscallError>(
&mut self,
res: Result<T, ExtAllocError>,
) -> Result<Result<T, ExtAllocError>, UndefinedTerminationReason>
fn process_alloc_func_result<T: Sized, ExtAllocError: BackendAllocSyscallError>( &mut self, res: Result<T, ExtAllocError>, ) -> Result<Result<T, ExtAllocError>, UndefinedTerminationReason>
Process alloc function result
Source§impl<Ext: BackendExternalities, Mem> BackendTermination<Ext> for State<Ext, Mem>
impl<Ext: BackendExternalities, Mem> BackendTermination<Ext> for State<Ext, Mem>
Source§fn into_parts(self) -> (Ext, UndefinedTerminationReason)
fn into_parts(self) -> (Ext, UndefinedTerminationReason)
Transforms
Self into tuple of externalities, memory and
termination reason returned after the execution.Auto Trait Implementations§
impl<Ext, Mem> Freeze for State<Ext, Mem>
impl<Ext, Mem> RefUnwindSafe for State<Ext, Mem>where
Ext: RefUnwindSafe,
Mem: RefUnwindSafe,
impl<Ext, Mem> Send for State<Ext, Mem>
impl<Ext, Mem> Sync for State<Ext, Mem>
impl<Ext, Mem> Unpin for State<Ext, Mem>
impl<Ext, Mem> UnwindSafe for State<Ext, Mem>where
Ext: UnwindSafe,
Mem: UnwindSafe,
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