pub enum CallResult {
Halt {
return_value: u64,
post_instance_hash: CapHash,
reflected_slot0: Option<CapHashOrRef>,
gas_used: u64,
},
Faulted {
reason: ExitReason,
reflected_slot0: Option<CapHashOrRef>,
gas_used: u64,
},
Paused {
marker_payload: Option<CapHashOrRef>,
gas_used: u64,
},
}Expand description
Result of a top-level invoke_cached / call_resume.
Mirrors v3 spec §5 “Apply terminations”:
Halt: REPLY-style termination;return_value = φ[7].Faulted: Trap / Panic / PageFault / OOG hard-fault.Paused: yielded.
Variants§
Halt
Fields
§
post_instance_hash: CapHashSettled hash of the post-HALT Instance state. Identifies a
fresh Cap::Instance blob in the cache.
Faulted
Fields
§
reason: ExitReasonPaused
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CallResult
impl RefUnwindSafe for CallResult
impl Send for CallResult
impl Sync for CallResult
impl Unpin for CallResult
impl UnsafeUnpin for CallResult
impl UnwindSafe for CallResult
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.