TheErrorType

Struct TheErrorType 

Source
pub struct TheErrorType {
    pub error_type: SystemErrorCodes,
    pub error_content: String,
}
Expand description

Smaller error struct to contain the mapped error type as a SystemErrorCodes enum and the error content from the origin error

Fields§

§error_type: SystemErrorCodes§error_content: String

Trait Implementations§

Source§

impl Debug for TheErrorType

Source§

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

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

impl Default for TheErrorType

Source§

fn default() -> TheErrorType

Returns the “default value” for a type. Read more
Source§

impl From<&str> for TheErrorType

Source§

fn from(value: &str) -> Self

Converts to this type from the input type.
Source§

impl From<AccessError> for TheErrorType

Source§

fn from(value: AccessError) -> Self

Converts to this type from the input type.
Source§

impl From<AddrParseError> for TheErrorType

Source§

fn from(value: AddrParseError) -> Self

Converts to this type from the input type.
Source§

impl From<BorrowError> for TheErrorType

Source§

fn from(value: BorrowError) -> Self

Converts to this type from the input type.
Source§

impl From<BorrowMutError> for TheErrorType

Source§

fn from(value: BorrowMutError) -> Self

Converts to this type from the input type.
Source§

impl From<CharTryFromError> for TheErrorType

Source§

fn from(value: CharTryFromError) -> Self

Converts to this type from the input type.
Source§

impl From<DecodeUtf16Error> for TheErrorType

Source§

fn from(value: DecodeUtf16Error) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for TheErrorType

Source§

fn from(value: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for TheErrorType

Source§

fn from(value: Error) -> Self

Converts to this type from the input type.
Source§

impl From<ErrorKind> for TheErrorType

Source§

fn from(value: ErrorKind) -> Self

Converts to this type from the input type.
Source§

impl From<FromBytesWithNulError> for TheErrorType

Source§

fn from(value: FromBytesWithNulError) -> Self

Converts to this type from the input type.
Source§

impl From<FromUtf16Error> for TheErrorType

Source§

fn from(value: FromUtf16Error) -> Self

Converts to this type from the input type.
Source§

impl From<FromUtf8Error> for TheErrorType

Source§

fn from(value: FromUtf8Error) -> Self

Converts to this type from the input type.
Source§

impl From<FromVecWithNulError> for TheErrorType

Source§

fn from(value: FromVecWithNulError) -> Self

Converts to this type from the input type.
Source§

impl From<Infallible> for TheErrorType

Source§

fn from(value: ParseError) -> Self

Converts to this type from the input type.
Source§

impl From<IntErrorKind> for TheErrorType

Source§

fn from(value: IntErrorKind) -> Self

Converts to this type from the input type.
Source§

impl<T> From<IntoInnerError<T>> for TheErrorType

Source§

fn from(value: IntoInnerError<T>) -> Self

Converts to this type from the input type.
Source§

impl From<IntoStringError> for TheErrorType

Source§

fn from(value: IntoStringError) -> Self

Converts to this type from the input type.
Source§

impl From<JoinPathsError> for TheErrorType

Source§

fn from(value: JoinPathsError) -> Self

Converts to this type from the input type.
Source§

impl From<LayoutError> for TheErrorType

Source§

fn from(value: LayoutError) -> Self

Converts to this type from the input type.
Source§

impl From<NulError> for TheErrorType

Source§

fn from(value: NulError) -> Self

Converts to this type from the input type.
Source§

impl From<ParseBoolError> for TheErrorType

Source§

fn from(value: ParseBoolError) -> Self

Converts to this type from the input type.
Source§

impl From<ParseCharError> for TheErrorType

Source§

fn from(value: ParseCharError) -> Self

Converts to this type from the input type.
Source§

impl From<ParseFloatError> for TheErrorType

Source§

fn from(value: ParseFloatError) -> Self

Converts to this type from the input type.
Source§

impl From<ParseIntError> for TheErrorType

Source§

fn from(value: ParseIntError) -> Self

Converts to this type from the input type.
Source§

impl<T> From<PoisonError<T>> for TheErrorType

Source§

fn from(value: PoisonError<T>) -> Self

Converts to this type from the input type.
Source§

impl From<RecvError> for TheErrorType

Source§

fn from(value: RecvError) -> Self

Converts to this type from the input type.
Source§

impl From<RecvTimeoutError> for TheErrorType

Source§

fn from(value: RecvTimeoutError) -> Self

Converts to this type from the input type.
Source§

impl<T> From<SendError<T>> for TheErrorType

Source§

fn from(value: SendError<T>) -> Self

Converts to this type from the input type.
Source§

impl From<String> for TheErrorType

Source§

fn from(value: String) -> Self

Converts to this type from the input type.
Source§

impl From<StripPrefixError> for TheErrorType

Source§

fn from(value: StripPrefixError) -> Self

Converts to this type from the input type.
Source§

impl From<SystemErrorCodes> for TheErrorType

Conversion from SystemErrorCodes to TheErrorType to generate a TheError struct using the map_to_new_error! macro

Source§

fn from(error: SystemErrorCodes) -> Self

Converts to this type from the input type.
Source§

impl From<SystemTimeError> for TheErrorType

Source§

fn from(value: SystemTimeError) -> Self

Converts to this type from the input type.
Source§

impl From<TheError> for TheErrorType

Source§

fn from(value: TheError) -> Self

Converts to this type from the input type.
Source§

impl From<TryFromCharError> for TheErrorType

Source§

fn from(value: TryFromCharError) -> Self

Converts to this type from the input type.
Source§

impl From<TryFromFloatSecsError> for TheErrorType

Source§

fn from(value: TryFromFloatSecsError) -> Self

Converts to this type from the input type.
Source§

impl From<TryFromIntError> for TheErrorType

Source§

fn from(value: TryFromIntError) -> Self

Converts to this type from the input type.
Source§

impl From<TryFromSliceError> for TheErrorType

Source§

fn from(value: TryFromSliceError) -> Self

Converts to this type from the input type.
Source§

impl<T> From<TryLockError<T>> for TheErrorType

Source§

fn from(value: TryLockError<T>) -> Self

Converts to this type from the input type.
Source§

impl From<TryRecvError> for TheErrorType

Source§

fn from(value: TryRecvError) -> Self

Converts to this type from the input type.
Source§

impl From<TryReserveError> for TheErrorType

Source§

fn from(value: TryReserveError) -> Self

Converts to this type from the input type.
Source§

impl<T> From<TrySendError<T>> for TheErrorType

Source§

fn from(value: TrySendError<T>) -> Self

Converts to this type from the input type.
Source§

impl From<Utf8Error> for TheErrorType

Source§

fn from(value: Utf8Error) -> Self

Converts to this type from the input type.
Source§

impl From<VarError> for TheErrorType

Source§

fn from(value: VarError) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where 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.

Source§

impl<T, U> Into<U> for T
where 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.

Source§

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

Source§

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 T
where U: TryFrom<T>,

Source§

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.