#[non_exhaustive]pub enum ExtError {
Execution(ExecutionError),
Memory(MemoryError),
Message(MessageError),
Reservation(ReservationError),
Unsupported,
}
Expand description
An error occurred in API.
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.
Execution(ExecutionError)
Execution error.
Memory(MemoryError)
Memory error.
Message(MessageError)
Message error.
Reservation(ReservationError)
Reservation error.
Unsupported
There is a new error variant old program don’t support.
Implementations§
Trait Implementations§
source§impl Decode for ExtError
impl Decode for ExtError
source§fn decode<I>(input: &mut I) -> Result<ExtError, Error>where
I: Input,
fn decode<I>(input: &mut I) -> Result<ExtError, Error>where
I: Input,
Attempt to deserialise the value from input.
§fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
fn decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>,
) -> Result<DecodeFinished, Error>where
I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more
§fn skip<I>(input: &mut I) -> Result<(), Error>where
I: Input,
fn skip<I>(input: &mut I) -> Result<(), Error>where
I: Input,
Attempt to skip the encoded value from input. Read more
§fn encoded_fixed_size() -> Option<usize>
fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more
source§impl Encode for ExtError
impl Encode for ExtError
§fn encode_to<T>(&self, dest: &mut T)where
T: Output + ?Sized,
fn encode_to<T>(&self, dest: &mut T)where
T: Output + ?Sized,
Convert self to a slice and append it to the destination.
§fn using_encoded<R, F>(&self, f: F) -> R
fn using_encoded<R, F>(&self, f: F) -> R
Convert self to a slice and then invoke the given closure with it.
§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
source§impl From<ExecutionError> for ExtError
impl From<ExecutionError> for ExtError
source§fn from(original: ExecutionError) -> ExtError
fn from(original: ExecutionError) -> ExtError
Converts to this type from the input type.
source§impl From<MemoryError> for ExtError
impl From<MemoryError> for ExtError
source§fn from(original: MemoryError) -> ExtError
fn from(original: MemoryError) -> ExtError
Converts to this type from the input type.
source§impl From<MessageError> for ExtError
impl From<MessageError> for ExtError
source§fn from(original: MessageError) -> ExtError
fn from(original: MessageError) -> ExtError
Converts to this type from the input type.
source§impl From<ReservationError> for ExtError
impl From<ReservationError> for ExtError
source§fn from(original: ReservationError) -> ExtError
fn from(original: ReservationError) -> ExtError
Converts to this type from the input type.
source§impl Ord for ExtError
impl Ord for ExtError
source§impl PartialOrd for ExtError
impl PartialOrd for ExtError
source§impl Sequence for ExtError
impl Sequence for ExtError
impl Copy for ExtError
impl Eq for ExtError
impl StructuralPartialEq for ExtError
Auto Trait Implementations§
impl Freeze for ExtError
impl RefUnwindSafe for ExtError
impl Send for ExtError
impl Sync for ExtError
impl Unpin for ExtError
impl UnwindSafe for ExtError
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
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
)§impl<T> DecodeLimit for Twhere
T: Decode,
impl<T> DecodeLimit for Twhere
T: Decode,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> KeyedVec for Twhere
T: Codec,
impl<T> KeyedVec for Twhere
T: Codec,
§fn to_keyed_vec(&self, prepend_key: &[u8]) -> Vec<u8>
fn to_keyed_vec(&self, prepend_key: &[u8]) -> Vec<u8>
Return an encoding of
Self
prepended by given slice.