Enum ink_primitives::LangError
source · #[non_exhaustive]
#[repr(u32)]
pub enum LangError {
CouldNotReadInput,
}
Expand description
An error emitted by the smart contracting language.
This is different than errors from:
- Errors from the contract, which are programmer defined
- Errors from the underlying execution environment (e.g
pallet-contracts
)
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.
CouldNotReadInput
Failed to read execution input for the dispatchable.
Trait Implementations§
source§impl Decode for LangError
impl Decode for LangError
source§impl Encode for LangError
impl Encode for LangError
source§fn encode_to<__CodecOutputEdqy: Output + ?Sized>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy
)
fn encode_to<__CodecOutputEdqy: Output + ?Sized>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )
Convert self to a slice and append it to the destination.
source§fn size_hint(&self) -> usize
fn size_hint(&self) -> usize
If possible give a hint of expected size of the encoding. Read more
source§fn using_encoded<R, F>(&self, f: F) -> Rwhere
F: FnOnce(&[u8]) -> R,
fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,
Convert self to a slice and then invoke the given closure with it.
source§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Calculates the encoded size. Read more