#[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
Available on crate feature codec only.
impl Decode for ExtError
Available on crate feature
codec only.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.
Source§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
Source§impl Encode for ExtError
Available on crate feature codec only.
impl Encode for ExtError
Available on crate feature
codec only.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 encode_to<T>(&self, dest: &mut T)
fn encode_to<T>(&self, dest: &mut T)
Convert self to a slice and append it to the destination.
Source§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.
Source§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
Source§impl Error for ExtError
impl Error for ExtError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<ExecutionError> for ExtError
impl From<ExecutionError> for ExtError
Source§fn from(source: ExecutionError) -> ExtError
fn from(source: ExecutionError) -> ExtError
Converts to this type from the input type.
Source§impl From<MemoryError> for ExtError
impl From<MemoryError> for ExtError
Source§fn from(source: MemoryError) -> ExtError
fn from(source: MemoryError) -> ExtError
Converts to this type from the input type.
Source§impl From<MessageError> for ExtError
impl From<MessageError> for ExtError
Source§fn from(source: MessageError) -> ExtError
fn from(source: MessageError) -> ExtError
Converts to this type from the input type.
Source§impl From<ReservationError> for ExtError
impl From<ReservationError> for ExtError
Source§fn from(source: ReservationError) -> ExtError
fn from(source: ReservationError) -> ExtError
Converts to this type from the input type.
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