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: StringTrait Implementations§
Source§impl Debug for TheErrorType
impl Debug for TheErrorType
Source§impl Default for TheErrorType
impl Default for TheErrorType
Source§fn default() -> TheErrorType
fn default() -> TheErrorType
Returns the “default value” for a type. Read more
Source§impl From<&str> for TheErrorType
impl From<&str> for TheErrorType
Source§impl From<AccessError> for TheErrorType
impl From<AccessError> for TheErrorType
Source§fn from(value: AccessError) -> Self
fn from(value: AccessError) -> Self
Converts to this type from the input type.
Source§impl From<AddrParseError> for TheErrorType
impl From<AddrParseError> for TheErrorType
Source§fn from(value: AddrParseError) -> Self
fn from(value: AddrParseError) -> Self
Converts to this type from the input type.
Source§impl From<BorrowError> for TheErrorType
impl From<BorrowError> for TheErrorType
Source§fn from(value: BorrowError) -> Self
fn from(value: BorrowError) -> Self
Converts to this type from the input type.
Source§impl From<BorrowMutError> for TheErrorType
impl From<BorrowMutError> for TheErrorType
Source§fn from(value: BorrowMutError) -> Self
fn from(value: BorrowMutError) -> Self
Converts to this type from the input type.
Source§impl From<CharTryFromError> for TheErrorType
impl From<CharTryFromError> for TheErrorType
Source§fn from(value: CharTryFromError) -> Self
fn from(value: CharTryFromError) -> Self
Converts to this type from the input type.
Source§impl From<DecodeUtf16Error> for TheErrorType
impl From<DecodeUtf16Error> for TheErrorType
Source§fn from(value: DecodeUtf16Error) -> Self
fn from(value: DecodeUtf16Error) -> Self
Converts to this type from the input type.
Source§impl From<Error> for TheErrorType
impl From<Error> for TheErrorType
Source§impl From<Error> for TheErrorType
impl From<Error> for TheErrorType
Source§impl From<ErrorKind> for TheErrorType
impl From<ErrorKind> for TheErrorType
Source§impl From<FromBytesWithNulError> for TheErrorType
impl From<FromBytesWithNulError> for TheErrorType
Source§fn from(value: FromBytesWithNulError) -> Self
fn from(value: FromBytesWithNulError) -> Self
Converts to this type from the input type.
Source§impl From<FromUtf16Error> for TheErrorType
impl From<FromUtf16Error> for TheErrorType
Source§fn from(value: FromUtf16Error) -> Self
fn from(value: FromUtf16Error) -> Self
Converts to this type from the input type.
Source§impl From<FromUtf8Error> for TheErrorType
impl From<FromUtf8Error> for TheErrorType
Source§fn from(value: FromUtf8Error) -> Self
fn from(value: FromUtf8Error) -> Self
Converts to this type from the input type.
Source§impl From<FromVecWithNulError> for TheErrorType
impl From<FromVecWithNulError> for TheErrorType
Source§fn from(value: FromVecWithNulError) -> Self
fn from(value: FromVecWithNulError) -> Self
Converts to this type from the input type.
Source§impl From<Infallible> for TheErrorType
impl From<Infallible> for TheErrorType
Source§fn from(value: ParseError) -> Self
fn from(value: ParseError) -> Self
Converts to this type from the input type.
Source§impl From<IntErrorKind> for TheErrorType
impl From<IntErrorKind> for TheErrorType
Source§fn from(value: IntErrorKind) -> Self
fn from(value: IntErrorKind) -> Self
Converts to this type from the input type.
Source§impl<T> From<IntoInnerError<T>> for TheErrorType
impl<T> From<IntoInnerError<T>> for TheErrorType
Source§fn from(value: IntoInnerError<T>) -> Self
fn from(value: IntoInnerError<T>) -> Self
Converts to this type from the input type.
Source§impl From<IntoStringError> for TheErrorType
impl From<IntoStringError> for TheErrorType
Source§fn from(value: IntoStringError) -> Self
fn from(value: IntoStringError) -> Self
Converts to this type from the input type.
Source§impl From<JoinPathsError> for TheErrorType
impl From<JoinPathsError> for TheErrorType
Source§fn from(value: JoinPathsError) -> Self
fn from(value: JoinPathsError) -> Self
Converts to this type from the input type.
Source§impl From<LayoutError> for TheErrorType
impl From<LayoutError> for TheErrorType
Source§fn from(value: LayoutError) -> Self
fn from(value: LayoutError) -> Self
Converts to this type from the input type.
Source§impl From<NulError> for TheErrorType
impl From<NulError> for TheErrorType
Source§impl From<ParseBoolError> for TheErrorType
impl From<ParseBoolError> for TheErrorType
Source§fn from(value: ParseBoolError) -> Self
fn from(value: ParseBoolError) -> Self
Converts to this type from the input type.
Source§impl From<ParseCharError> for TheErrorType
impl From<ParseCharError> for TheErrorType
Source§fn from(value: ParseCharError) -> Self
fn from(value: ParseCharError) -> Self
Converts to this type from the input type.
Source§impl From<ParseFloatError> for TheErrorType
impl From<ParseFloatError> for TheErrorType
Source§fn from(value: ParseFloatError) -> Self
fn from(value: ParseFloatError) -> Self
Converts to this type from the input type.
Source§impl From<ParseIntError> for TheErrorType
impl From<ParseIntError> for TheErrorType
Source§fn from(value: ParseIntError) -> Self
fn from(value: ParseIntError) -> Self
Converts to this type from the input type.
Source§impl<T> From<PoisonError<T>> for TheErrorType
impl<T> From<PoisonError<T>> for TheErrorType
Source§fn from(value: PoisonError<T>) -> Self
fn from(value: PoisonError<T>) -> Self
Converts to this type from the input type.
Source§impl From<RecvError> for TheErrorType
impl From<RecvError> for TheErrorType
Source§impl From<RecvTimeoutError> for TheErrorType
impl From<RecvTimeoutError> for TheErrorType
Source§fn from(value: RecvTimeoutError) -> Self
fn from(value: RecvTimeoutError) -> Self
Converts to this type from the input type.
Source§impl<T> From<SendError<T>> for TheErrorType
impl<T> From<SendError<T>> for TheErrorType
Source§impl From<String> for TheErrorType
impl From<String> for TheErrorType
Source§impl From<StripPrefixError> for TheErrorType
impl From<StripPrefixError> for TheErrorType
Source§fn from(value: StripPrefixError) -> Self
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
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
fn from(error: SystemErrorCodes) -> Self
Converts to this type from the input type.
Source§impl From<SystemTimeError> for TheErrorType
impl From<SystemTimeError> for TheErrorType
Source§fn from(value: SystemTimeError) -> Self
fn from(value: SystemTimeError) -> Self
Converts to this type from the input type.
Source§impl From<TheError> for TheErrorType
impl From<TheError> for TheErrorType
Source§impl From<TryFromCharError> for TheErrorType
impl From<TryFromCharError> for TheErrorType
Source§fn from(value: TryFromCharError) -> Self
fn from(value: TryFromCharError) -> Self
Converts to this type from the input type.
Source§impl From<TryFromFloatSecsError> for TheErrorType
impl From<TryFromFloatSecsError> for TheErrorType
Source§fn from(value: TryFromFloatSecsError) -> Self
fn from(value: TryFromFloatSecsError) -> Self
Converts to this type from the input type.
Source§impl From<TryFromIntError> for TheErrorType
impl From<TryFromIntError> for TheErrorType
Source§fn from(value: TryFromIntError) -> Self
fn from(value: TryFromIntError) -> Self
Converts to this type from the input type.
Source§impl From<TryFromSliceError> for TheErrorType
impl From<TryFromSliceError> for TheErrorType
Source§fn from(value: TryFromSliceError) -> Self
fn from(value: TryFromSliceError) -> Self
Converts to this type from the input type.
Source§impl<T> From<TryLockError<T>> for TheErrorType
impl<T> From<TryLockError<T>> for TheErrorType
Source§fn from(value: TryLockError<T>) -> Self
fn from(value: TryLockError<T>) -> Self
Converts to this type from the input type.
Source§impl From<TryRecvError> for TheErrorType
impl From<TryRecvError> for TheErrorType
Source§fn from(value: TryRecvError) -> Self
fn from(value: TryRecvError) -> Self
Converts to this type from the input type.
Source§impl From<TryReserveError> for TheErrorType
impl From<TryReserveError> for TheErrorType
Source§fn from(value: TryReserveError) -> Self
fn from(value: TryReserveError) -> Self
Converts to this type from the input type.
Source§impl<T> From<TrySendError<T>> for TheErrorType
impl<T> From<TrySendError<T>> for TheErrorType
Source§fn from(value: TrySendError<T>) -> Self
fn from(value: TrySendError<T>) -> Self
Converts to this type from the input type.
Source§impl From<Utf8Error> for TheErrorType
impl From<Utf8Error> for TheErrorType
Auto Trait Implementations§
impl Freeze for TheErrorType
impl RefUnwindSafe for TheErrorType
impl Send for TheErrorType
impl Sync for TheErrorType
impl Unpin for TheErrorType
impl UnwindSafe for TheErrorType
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