Enum near_sdk::PromiseResult
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>)
Failed
Trait Implementations
sourceimpl Debug for PromiseResult
impl Debug for PromiseResult
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 !=
.
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