Enum library_blockchain::CustomError
source · [−]pub enum CustomError {
String(StringError),
SerdeJson(Error),
IO(Error),
BlockchainFactory(BlockainFactoryError),
BlockValidation(BlockValidationError),
InvalidOption(String),
Other,
}
Expand description
Allow the use of “{:?}” format specifier
Variants
String(StringError)
SerdeJson(Error)
IO(Error)
BlockchainFactory(BlockainFactoryError)
BlockValidation(BlockValidationError)
InvalidOption(String)
Other
Trait Implementations
sourceimpl Debug for CustomError
impl Debug for CustomError
sourceimpl Display for CustomError
impl Display for CustomError
sourceimpl Error for CustomError
impl Error for CustomError
sourcefn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎 Deprecated since 1.33.0:
replaced by Error::source, which can support downcasting
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl From<BlockValidationError> for CustomError
impl From<BlockValidationError> for CustomError
sourcefn from(cause: BlockValidationError) -> CustomError
fn from(cause: BlockValidationError) -> CustomError
Converts to this type from the input type.
sourceimpl From<BlockainFactoryError> for CustomError
impl From<BlockainFactoryError> for CustomError
sourcefn from(cause: BlockainFactoryError) -> CustomError
fn from(cause: BlockainFactoryError) -> CustomError
Converts to this type from the input type.
sourceimpl From<Error> for CustomError
impl From<Error> for CustomError
sourcefn from(cause: Error) -> CustomError
fn from(cause: Error) -> CustomError
Converts to this type from the input type.
sourceimpl From<Error> for CustomError
impl From<Error> for CustomError
sourcefn from(cause: Error) -> CustomError
fn from(cause: Error) -> CustomError
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for CustomError
impl Send for CustomError
impl Sync for CustomError
impl Unpin for CustomError
impl !UnwindSafe for CustomError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more