Enum gear_core_errors::ExtError
source · #[non_exhaustive]pub enum ExtError {
Execution(ExecutionError),
Memory(MemoryError),
Message(MessageError),
Reservation(ReservationError),
ProgramRent(ProgramRentError),
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.
ProgramRent(ProgramRentError)
Program rent error.
Unsupported
There is a new error variant old program don’t support.
Implementations§
Trait Implementations§
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<ProgramRentError> for ExtError
impl From<ProgramRentError> for ExtError
source§fn from(original: ProgramRentError) -> ExtError
fn from(original: ProgramRentError) -> 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 PartialEq for ExtError
impl PartialEq for ExtError
source§impl PartialOrd for ExtError
impl PartialOrd for ExtError
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Sequence for ExtError
impl Sequence for ExtError
impl Copy for ExtError
impl Eq for ExtError
impl StructuralEq for ExtError
impl StructuralPartialEq for ExtError
Auto Trait Implementations§
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