pub enum UtilsError {
CannotParseQueryResult,
}Expand description
Enumerates the errors that can occur within utility functions.
This enum encapsulates specific error cases encountered in utility functions, such as parsing and decoding operations. Each variant represents a distinct error case.
When a UtilsError occurs, it can be converted into a DataError which serves as
a centralized error type for broader error handling.
§Variants
CannotParseQueryResult: This error occurs when it is impossible to decode the result into a managed type, as encountered in functions likeparse_query_return_string_dataandparse_query_return_bytes_data.
§Example
let error = UtilsError::CannotParseQueryResult;
let data_error: DataError = error.into();Variants§
CannotParseQueryResult
Represents an error case where the result cannot be decoded into a managed type.
Trait Implementations§
Source§impl Clone for UtilsError
impl Clone for UtilsError
Source§fn clone(&self) -> UtilsError
fn clone(&self) -> UtilsError
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UtilsError
impl Debug for UtilsError
Source§impl<'de> Deserialize<'de> for UtilsError
impl<'de> Deserialize<'de> for UtilsError
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<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.
Source§impl PartialEq for UtilsError
impl PartialEq for UtilsError
Source§impl Serialize for UtilsError
impl Serialize for UtilsError
impl StructuralPartialEq for UtilsError
Auto Trait Implementations§
impl Freeze for UtilsError
impl RefUnwindSafe for UtilsError
impl Send for UtilsError
impl Sync for UtilsError
impl Unpin for UtilsError
impl UnwindSafe for UtilsError
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