Enum ink_lang::reflect::DispatchError
source · [−]pub enum DispatchError {
InvalidSelector,
UnknownSelector,
InvalidParameters,
CouldNotReadInput,
PaidUnpayableMessage,
}
Expand description
An error that can occur during dispatch of ink! dispatchables.
Variants
InvalidSelector
Failed to decode into a valid dispatch selector.
UnknownSelector
The decoded selector is not known to the dispatch decoder.
InvalidParameters
Failed to decode the parameters for the selected dispatchable.
CouldNotReadInput
Failed to read execution input for the dispatchable.
PaidUnpayableMessage
Invalidly paid an unpayable dispatchable.
Trait Implementations
sourceimpl Clone for DispatchError
impl Clone for DispatchError
sourcefn clone(&self) -> DispatchError
fn clone(&self) -> DispatchError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for DispatchError
impl Debug for DispatchError
sourceimpl Display for DispatchError
impl Display for DispatchError
sourceimpl From<DispatchError> for Error
impl From<DispatchError> for Error
sourcefn from(error: DispatchError) -> Self
fn from(error: DispatchError) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<DispatchError> for DispatchError
impl PartialEq<DispatchError> for DispatchError
impl Copy for DispatchError
impl Eq for DispatchError
impl StructuralEq for DispatchError
impl StructuralPartialEq for DispatchError
Auto Trait Implementations
impl RefUnwindSafe for DispatchError
impl Send for DispatchError
impl Sync for DispatchError
impl Unpin for DispatchError
impl UnwindSafe for DispatchError
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more