Enum near_sdk::VmPromiseResult
source · [−]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, Global>)
Failed
Trait Implementations
sourceimpl Debug for PromiseResult
impl Debug for PromiseResult
sourceimpl<'de> Deserialize<'de> for PromiseResult
impl<'de> Deserialize<'de> for PromiseResult
sourcefn deserialize<__D>(
__deserializer: __D
) -> Result<PromiseResult, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<PromiseResult, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl From<PromiseResult> for VmPromiseResult
impl From<PromiseResult> for VmPromiseResult
sourcefn from(p: PromiseResult) -> Self
fn from(p: PromiseResult) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<PromiseResult> for PromiseResult
impl PartialEq<PromiseResult> for PromiseResult
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &PromiseResult) -> bool
fn ne(&self, other: &PromiseResult) -> bool
This method tests for !=
.
sourceimpl Serialize for PromiseResult
impl Serialize for PromiseResult
sourcefn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more