pub enum DataError {
Address(AddressError),
Utils(UtilsError),
}Expand description
Enumerates the centralized error handling types across different operations.
DataError serves as a unified error type that aggregates different error types from
various operations into a single enum. This centralization facilitates error handling
across different parts of the codebase.
§Variants
Address(AddressError): Encapsulates errors that occur during address-related operations, as represented by theAddressErrorenum.Utils(UtilsError): Encapsulates errors that occur within utility functions, as represented by theUtilsErrorenum.
Variants§
Address(AddressError)
Represents an error from address-related operations.
Utils(UtilsError)
Represents an error from utility functions.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DataError
impl<'de> Deserialize<'de> for DataError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
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<AddressError> for DataError
Provides a conversion from AddressError to DataError.
impl From<AddressError> for DataError
Provides a conversion from AddressError to DataError.
This implementation allows for an AddressError to be converted into a DataError,
facilitating centralized error handling.
Source§fn from(value: AddressError) -> Self
fn from(value: AddressError) -> Self
Converts to this type from the input type.
Source§impl From<UtilsError> for DataError
Provides a conversion from UtilsError to DataError.
impl From<UtilsError> for DataError
Provides a conversion from UtilsError to DataError.
This implementation allows for a UtilsError to be converted into a DataError,
facilitating centralized error handling.
Source§fn from(value: UtilsError) -> Self
fn from(value: UtilsError) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for DataError
Auto Trait Implementations§
impl Freeze for DataError
impl RefUnwindSafe for DataError
impl Send for DataError
impl Sync for DataError
impl Unpin for DataError
impl UnwindSafe for DataError
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§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> InterpretableFrom<&T> for Twhere
T: Clone,
impl<T> InterpretableFrom<&T> for Twhere
T: Clone,
fn interpret_from(from: &T, _context: &InterpreterContext) -> T
Source§impl<T> InterpretableFrom<T> for T
impl<T> InterpretableFrom<T> for T
fn interpret_from(from: T, _context: &InterpreterContext) -> T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more