Enum near_vm_logic::types::PromiseResult
source · pub enum PromiseResult {
NotReady,
Successful(Vec<u8>),
Failed,
}
Expand description
When there is a callback attached to one or more contract calls the execution results of these calls are available to the contract invoked through the callback.
Variants§
NotReady
Current version of the protocol never returns PromiseResult::NotReady
.
Successful(Vec<u8>)
Failed
Trait Implementations§
source§impl Debug for PromiseResult
impl Debug for PromiseResult
source§impl PartialEq<PromiseResult> for PromiseResult
impl PartialEq<PromiseResult> for PromiseResult
source§fn eq(&self, other: &PromiseResult) -> bool
fn eq(&self, other: &PromiseResult) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PromiseResult
Auto Trait Implementations§
impl RefUnwindSafe for PromiseResult
impl Send for PromiseResult
impl Sync for PromiseResult
impl Unpin for PromiseResult
impl UnwindSafe for PromiseResult
Blanket Implementations§
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request