[−][src]Struct xpx_supercontracts_sdk::statuses::ExecutionError
Result of unsuccessful supercontract execution.
An execution error consists of an error code and optional description. Descriptions are mostly used for developer purposes, not for interaction of the system with users.
Methods
impl ExecutionError
[src]
pub fn new(code: i8) -> Self
[src]
Constructs a new ExecutionError
instance with the given error code.
pub fn with_description<T: Into<String>>(code: i8, description: T) -> Self
[src]
Constructs a new ExecutionError
instance with the given error code and description.
Trait Implementations
impl Clone for ExecutionError
[src]
fn clone(&self) -> ExecutionError
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ExecutionError
[src]
impl Eq for ExecutionError
[src]
impl From<Error> for ExecutionError
[src]
fn from(value: Error) -> ExecutionError
[src]
impl Ord for ExecutionError
[src]
fn cmp(&self, other: &ExecutionError) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<ExecutionError> for ExecutionError
[src]
fn eq(&self, other: &ExecutionError) -> bool
[src]
fn ne(&self, other: &ExecutionError) -> bool
[src]
impl PartialOrd<ExecutionError> for ExecutionError
[src]
fn partial_cmp(&self, other: &ExecutionError) -> Option<Ordering>
[src]
fn lt(&self, other: &ExecutionError) -> bool
[src]
fn le(&self, other: &ExecutionError) -> bool
[src]
fn gt(&self, other: &ExecutionError) -> bool
[src]
fn ge(&self, other: &ExecutionError) -> bool
[src]
impl StructuralEq for ExecutionError
[src]
impl StructuralPartialEq for ExecutionError
[src]
Auto Trait Implementations
impl RefUnwindSafe for ExecutionError
impl Send for ExecutionError
impl Sync for ExecutionError
impl Unpin for ExecutionError
impl UnwindSafe for ExecutionError
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,