pub enum ExternalResult {
Resolved(Value),
Fallback,
Pending,
}Expand description
Result of an external function handler call.
Variants§
Resolved(Value)
The handler resolved the call and returned a value.
Value::Null is valid for fire-and-forget calls.
Fallback
The handler declined — use the ink fallback body if available.
Pending
The handler cannot resolve the call yet (async resolution).
The VM freezes with the External frame intact. The caller must
resolve via story.resolve_external(value) before continuing.
Trait Implementations§
Source§impl Clone for ExternalResult
impl Clone for ExternalResult
Source§fn clone(&self) -> ExternalResult
fn clone(&self) -> ExternalResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ExternalResult
impl RefUnwindSafe for ExternalResult
impl Send for ExternalResult
impl Sync for ExternalResult
impl Unpin for ExternalResult
impl UnsafeUnpin for ExternalResult
impl UnwindSafe for ExternalResult
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