pub enum ExecutorError {
    NetworkQuery(NetworkQueryError),
    DataError(DataError),
    MockDeploy(MockDeployError),
}
Expand description

An enumeration representing the various types of errors that can be encountered within the executor context.

Variants§

§

NetworkQuery(NetworkQueryError)

This variant wraps errors encountered during network queries, which may include issues such as connection failures or malformed requests. The wrapped NetworkQueryError provides more detailed information about the nature of the network-related error that occurred.

§

DataError(DataError)

Wraps errors related to data operations, usually arising from the novax-data crate. These may include errors related to data parsing, validation, or any other data-related operation. The wrapped DataError provides more detailed information about the nature of the data-related error that occurred.

§

MockDeploy(MockDeployError)

This variant wraps errors encountered during mock deployments. This is particularly useful when using the MockExecutor for testing or simulation purposes. The wrapped MockDeployError provides more detailed information about the nature of the mock deployment-related error that occurred.

Trait Implementations§

source§

impl Clone for ExecutorError

source§

fn clone(&self) -> ExecutorError

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for ExecutorError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for ExecutorError

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl From<DataError> for ExecutorError

An implementation of the From trait to allow for easy conversions from DataError to ExecutorError.

source§

fn from(value: DataError) -> Self

Converts to this type from the input type.
source§

impl From<MockDeployError> for ExecutorError

An implementation of the From trait to allow for easy conversions from MockDeployError to ExecutorError.

This implementation facilitates the propagation of MockDeployErrors through the code, by allowing them to be converted into the more general ExecutorError type.

source§

fn from(value: MockDeployError) -> Self

Performs the conversion from a MockDeployError to an ExecutorError.

Parameters
  • value: The MockDeployError value to be converted.
Returns
  • ExecutorError: An ExecutorError instance containing the provided MockDeployError value.
source§

impl From<NetworkQueryError> for ExecutorError

An implementation of the From trait to allow for easy conversions from NetworkQueryError to ExecutorError.

This implementation facilitates the propagation of NetworkQueryErrors through the code, by allowing them to be converted into the more general ExecutorError type.

source§

fn from(value: NetworkQueryError) -> Self

Performs the conversion from a NetworkQueryError to an ExecutorError.

Parameters
  • value: The NetworkQueryError value to be converted.
Returns
  • ExecutorError: An ExecutorError instance containing the provided NetworkQueryError value.
source§

impl PartialEq for ExecutorError

source§

fn eq(&self, other: &ExecutorError) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Serialize for ExecutorError

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl StructuralPartialEq for ExecutorError

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
§

impl<T> InterpretableFrom<&T> for Twhere T: Clone,

§

fn interpret_from(from: &T, _context: &InterpreterContext) -> T

§

impl<T> InterpretableFrom<T> for T

§

fn interpret_from(from: T, _context: &InterpreterContext) -> T

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> ReconstructableFrom<&T> for Twhere T: Clone,

§

fn reconstruct_from(from: &T, _builder: &ReconstructorContext) -> T

§

impl<T> ReconstructableFrom<T> for T

§

fn reconstruct_from(from: T, _builder: &ReconstructorContext) -> T

source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for Twhere T: for<'de> Deserialize<'de>,