Enum near_sdk::PromiseError
source · [−]#[non_exhaustive]
pub enum PromiseError {
Failed,
NotReady,
}
Expand description
All error variants which can occur with promise results.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Failed
Promise result failed.
NotReady
Current version of the protocol never returns this variant.
Trait Implementations
sourceimpl Debug for PromiseError
impl Debug for PromiseError
sourceimpl PartialEq<PromiseError> for PromiseError
impl PartialEq<PromiseError> for PromiseError
sourcefn eq(&self, other: &PromiseError) -> bool
fn eq(&self, other: &PromiseError) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
impl Eq for PromiseError
impl StructuralEq for PromiseError
impl StructuralPartialEq for PromiseError
Auto Trait Implementations
impl RefUnwindSafe for PromiseError
impl Send for PromiseError
impl Sync for PromiseError
impl Unpin for PromiseError
impl UnwindSafe for PromiseError
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