pub enum DispatchError {
InvalidSelector,
UnknownSelector,
InvalidParameters,
CouldNotReadInput,
PaidUnpayableMessage,
}
Expand description
An error that can occur during dispatch of ink! dispatchables.
todo: add tests for other errors beside PaidUnpayableMessage
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.
Implementations§
Trait Implementations§
source§impl Clone for DispatchError
impl Clone for DispatchError
source§fn clone(&self) -> DispatchError
fn clone(&self) -> DispatchError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DispatchError
impl Debug for DispatchError
source§impl Display for DispatchError
impl Display for DispatchError
source§impl From<DispatchError> for Error
impl From<DispatchError> for Error
source§fn from(error: DispatchError) -> Self
fn from(error: DispatchError) -> Self
Converts to this type from the input type.
source§impl PartialEq for DispatchError
impl PartialEq for DispatchError
impl Copy for DispatchError
impl Eq for DispatchError
impl StructuralPartialEq for DispatchError
Auto Trait Implementations§
impl Freeze for DispatchError
impl RefUnwindSafe for DispatchError
impl Send for DispatchError
impl Sync for DispatchError
impl Unpin for DispatchError
impl UnwindSafe for DispatchError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)