Struct ruc::err::SimpleError

source ·
pub struct SimpleError<E: Debug + Display + Send + 'static> { /* private fields */ }
Expand description

A pre-impled Error

Implementations§

Trait Implementations§

Formats the value using the given formatter. Read more
Formats the value using the given formatter. Read more
Converts to this type from the input type.

get the top-level error message

get the final(lowest) error message

type id of current error type
Get the original error object, used to match its original type by Any. Read more
“error msg” + “debug info”
point to a error which caused current error
type ids of errors of each level(from top to bottom).
get the type of the lowest(bottom) error
check the type of the lowest error
check if an error exists in the error chain
compare two object
check if any node from the error_chain matches the given error
generate the final error msg
Panic after printing error_chain
Generate the log string
Generate the log string with custom mode
Print log

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

Converts the given value to a String. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.